GNOME Bugzilla – Bug 691042
UnlockDialog: honor org.gnome.desktop.screensaver.user-switch-enabled
Last modified: 2013-01-03 00:44:32 UTC
The screensaver schema has a key that it is meant for locking down the ability to switch user when the screen is locked, but support for it was not implemented in the new screenshield. Fix that by checking the key before creating the button.
Created attachment 232597 [details] [review] UnlockDialog: honor org.gnome.desktop.screensaver.user-switch-enabled
Review of attachment 232597 [details] [review]: ::: js/ui/unlockDialog.js @@ +199,3 @@ y_align: St.Align.MIDDLE }); + let screenSaverSettings = new Gio.Settings({ schema: 'org.gnome.desktop.screensaver' }); Do we need to respect changes at runtime? I don't think we do, so OK. ::: src/shell-js.c @@ -55,3 @@ &target_object)) { - char *message; completely unrelated
(In reply to comment #2) > Review of attachment 232597 [details] [review]: > > ::: js/ui/unlockDialog.js > @@ +199,3 @@ > y_align: St.Align.MIDDLE }); > > + let screenSaverSettings = new Gio.Settings({ schema: > 'org.gnome.desktop.screensaver' }); > > Do we need to respect changes at runtime? I don't think we do, so OK. Me neither, that's why I didn't write it. > ::: src/shell-js.c > @@ -55,3 @@ > &target_object)) > { > - char *message; > > completely unrelated Indeed. git commit -a bit me again!
Created attachment 232598 [details] [review] UnlockDialog: honor org.gnome.desktop.screensaver.user-switch-enabled The screensaver schema has a key that it is meant for locking down the ability to switch user when the screen is locked, but support for it was not implemented in the new screenshield. Fix that by checking the key before creating the button.
Review of attachment 232598 [details] [review]: OK.
Attachment 232598 [details] pushed as 8f41c6b - UnlockDialog: honor org.gnome.desktop.screensaver.user-switch-enabled