Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . gnome-shell (3.8.0.1-0ubuntu1+js17~raring3) raring; urgency=medium . * debian/patches/revert-power-dbus-name-update.patch: - Revert a commit that broke the power menu. It needs gnome-settings-daemon 3.8 which won't be landing in the GNOME3 PPA any time soon Author: Jeremy Bicha --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- gnome-shell-3.8.0.1.orig/js/ui/userMenu.js +++ gnome-shell-3.8.0.1/js/ui/userMenu.js @@ -21,6 +21,7 @@ const ModalDialog = imports.ui.modalDial const PanelMenu = imports.ui.panelMenu; const PopupMenu = imports.ui.popupMenu; const Params = imports.misc.params; +//const UnlockDialog = imports.ui.unlockDialog; const Util = imports.misc.util; const LOCKDOWN_SCHEMA = 'org.gnome.desktop.lockdown'; @@ -867,7 +868,11 @@ const UserMenuButton = new Lang.Class({ Main.overview.hide(); if (Main.screenShield) Main.screenShield.lock(false); - Gdm.goto_login_session_sync(null); +// Gdm.goto_login_session_sync(null); +// if (UnlockDialog.isSupported()) +// Gdm.goto_login_session_sync(null); +// else + this._lightdmLoginSession(); }, _onQuitSessionActivate: function() { @@ -994,5 +999,19 @@ const UserMenuButton = new Lang.Class({ this.menu.close(BoxPointer.PopupAnimation.NONE); this._loginManager.suspend(); } - } +// } + }, + _lightdmLoginSession: function() { + try { + let seat = GLib.getenv("XDG_SEAT_PATH"); + let result = Gio.DBus.system.call_sync('org.freedesktop.DisplayManager', + seat, + 'org.freedesktop.DisplayManager.Seat', + 'SwitchToGreeter', null, null, + Gio.DBusCallFlags.NONE, + -1, null); + } catch(e) { + Main.screenShield.lock(); + } +} });