Merge lp:~sjakthol/unity/fix-1292154 into lp:unity
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Marco Trevisan (Treviño) | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 3765 | ||||
Proposed branch: | lp:~sjakthol/unity/fix-1292154 | ||||
Merge into: | lp:unity | ||||
Diff against target: |
76 lines (+35/-1) 2 files modified
UnityCore/GnomeSessionManager.cpp (+9/-1) tests/test_gnome_session_manager.cpp (+26/-0) |
||||
To merge this branch: | bzr merge lp:~sjakthol/unity/fix-1292154 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Approve | ||
Review via email:
|
Commit message
Session: Don't lock the screen if screen locking is disabled by
org.gnome.
Description of the change
To test:
1. Run 'gsettings set org.gnome.
2. Press Super+L
The 'disable-
These changes should make Unity follow the behavior of gnome-screensaver by ignoring all locking requests if lock screen is disabled.
Hi, thanks for this, just one thing... Imho it's not needed to cache the value in this case, nor to monitor its changes.
So inside GnomeManager: :LockScreen, just do something like:
glib::Object< GSettings> lockdown_ settings( g_settings_ new(GNOME_ LOCKDOWN_ OPTIONS. c_str() ));
if (g_settings_ get_boolean( lockdown_ settings, DISABLE_ LOCKSCREEN_ KEY.c_str( )))
return;