Skip to content

Conversation

@sunweaver
Copy link
Member

…org.gnome.desktop.lockdown gsettings to be set, honour org.mate.desktop.lockdown gsettings instead).

@sunweaver sunweaver requested a review from a user June 21, 2025 14:17
…org.gnome.desktop.lockdown gsettings to be set, honour org.mate.desktop.lockdown gsettings instead).
@sunweaver sunweaver force-pushed the personal/sunweaver/mate-lockdown-support branch from de1afa6 to 69772c4 Compare June 21, 2025 14:18
@sunweaver sunweaver requested a review from gber August 5, 2025 15:24
@sunweaver
Copy link
Member Author

@gber Can you review this?

@sunweaver
Copy link
Member Author

@gber Please only merge GPG-signed. I normally do this via "View command line instructions" and add a "-S" to the git merge command.

{
priv_t * p;
GSettings * s;
GSettings * s = null;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/null/NULL/

{
s = g_settings_new ("org.gnome.desktop.lockdown");
}
elif (ayatana_common_utils_is_mate())
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/elif/else if/

g_signal_connect_swapped (s, "changed::disable-user-switching",
G_CALLBACK(indicator_session_actions_notify_can_switch), self);
p->lockdown_settings = s;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So now we have the possibility that p->lockdown_settings might no longer be set here, does indicator_session_actions_dbus_get_instance_private() ensure that it is initialized to NULL and does the code handling it expect it to be null?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're not sure about this it might be a better idea to check for Mate and else assume GNOME.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants