[gnome-shell] statusMenu: Lock screen before suspending



commit 162d029c81959833d30d9b610dc0df22f76b6fce
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Wed Mar 9 21:59:50 2011 +0100

    statusMenu: Lock screen before suspending
    
    We need to lock the screen before suspending the system
    to prevent unauthorized access to the system / account.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=643357

 js/ui/statusMenu.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js
index adf5491..9c251b8 100644
--- a/js/ui/statusMenu.js
+++ b/js/ui/statusMenu.js
@@ -218,7 +218,9 @@ StatusMenuButton.prototype = {
 
         if (this._haveSuspend &&
             this._suspendOrPowerOffItem.state == PopupMenu.PopupAlternatingMenuItemState.DEFAULT) {
-            this._upClient.suspend_sync(null);
+            this._screenSaverProxy.LockRemote(Lang.bind(this, function() {
+                this._upClient.suspend_sync(null);
+            }));
         } else {
             Util.spawn(['gnome-session-quit', '--power-off']);
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]