From 162d029c81959833d30d9b610dc0df22f76b6fce Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Wed, 9 Mar 2011 21:59:50 +0100 Subject: [PATCH] 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 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js index adf5491f7..9c251b83c 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']); }