Merge lp:~azzar1/unity/fix-1410582 into lp:unity

Proposed by Andrea Azzarone
Status: Merged
Approved by: Stephen M. Webb
Approved revision: no longer in the source branch.
Merged at revision: 3908
Proposed branch: lp:~azzar1/unity/fix-1410582
Merge into: lp:unity
Diff against target: 13 lines (+3/-0)
1 file modified
UnityCore/GnomeSessionManager.cpp (+3/-0)
To merge this branch: bzr merge lp:~azzar1/unity/fix-1410582
Reviewer Review Type Date Requested Status
Stephen M. Webb (community) Approve
Review via email: mp+246373@code.launchpad.net

Commit message

Avoid running pontentially dangerous code paths when the screen is locked.

To post a comment you must log in.
Revision history for this message
Stephen M. Webb (bregma) wrote :

I don't think this will hurt anything.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'UnityCore/GnomeSessionManager.cpp'
2--- UnityCore/GnomeSessionManager.cpp 2014-10-21 13:45:43 +0000
3+++ UnityCore/GnomeSessionManager.cpp 2015-01-14 00:16:29 +0000
4@@ -648,6 +648,9 @@
5
6 bool GnomeManager::CanLock() const
7 {
8+ if (is_locked())
9+ return true;
10+
11 glib::Object<GSettings> lockdown_settings(g_settings_new(GNOME_LOCKDOWN_OPTIONS.c_str()));
12
13 if (g_settings_get_boolean(lockdown_settings, DISABLE_LOCKSCREEN_KEY.c_str()) ||