diff -Nru gnome-shell-3.8.1/debian/changelog gnome-shell-3.8.1/debian/changelog --- gnome-shell-3.8.1/debian/changelog 2013-04-17 00:35:07.000000000 +0200 +++ gnome-shell-3.8.1/debian/changelog 2013-04-18 20:41:10.000000000 +0200 @@ -1,3 +1,10 @@ +gnome-shell (3.8.1-0ubuntu1~raring2) raring; urgency=medium + + * Ubuntu 13.04 raring and Gnome-Shell 3.8 now are able to call lightDM + if activated and user needs to be switched + + -- Gerhard Stein Thu, 18 Apr 2013 20:38:44 +0200 + gnome-shell (3.8.1-0ubuntu1~raring1) raring; urgency=low * New upstream release. diff -Nru gnome-shell-3.8.1/debian/patches/gnome3.8ubuntuLightDMUserSwitch.patch gnome-shell-3.8.1/debian/patches/gnome3.8ubuntuLightDMUserSwitch.patch --- gnome-shell-3.8.1/debian/patches/gnome3.8ubuntuLightDMUserSwitch.patch 1970-01-01 01:00:00.000000000 +0100 +++ gnome-shell-3.8.1/debian/patches/gnome3.8ubuntuLightDMUserSwitch.patch 2013-04-18 20:35:37.000000000 +0200 @@ -0,0 +1,33 @@ +Index: gnome-shell-3.8.1/js/ui/userMenu.js +=================================================================== +--- gnome-shell-3.8.1.orig/js/ui/userMenu.js 2013-04-16 20:52:32.000000000 +0200 ++++ gnome-shell-3.8.1/js/ui/userMenu.js 2013-04-18 19:26:56.977631000 +0200 +@@ -867,7 +867,8 @@ + Main.overview.hide(); + if (Main.screenShield) + Main.screenShield.lock(false); +- Gdm.goto_login_session_sync(null); ++ ++ this._lightdmLoginSession(); + }, + + _onQuitSessionActivate: function() { +@@ -994,5 +995,18 @@ + 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) { ++ Gdm.goto_login_session_sync(null); ++ } + } + }); diff -Nru gnome-shell-3.8.1/debian/patches/revert-power-dbus-name-update.patch gnome-shell-3.8.1/debian/patches/revert-power-dbus-name-update.patch --- gnome-shell-3.8.1/debian/patches/revert-power-dbus-name-update.patch 2013-04-17 00:35:07.000000000 +0200 +++ gnome-shell-3.8.1/debian/patches/revert-power-dbus-name-update.patch 2013-04-18 20:33:03.000000000 +0200 @@ -5,11 +5,11 @@ https://bugzilla.gnome.org/show_bug.cgi?id=690506 --- -diff --git a/js/ui/status/power.js b/js/ui/status/power.js -index d804072..83d4551 100644 ---- a/js/ui/status/power.js -+++ b/js/ui/status/power.js -@@ -7,7 +7,7 @@ const St = imports.gi.St; +Index: gnome-shell-3.8.1/js/ui/status/power.js +=================================================================== +--- gnome-shell-3.8.1.orig/js/ui/status/power.js 2013-03-14 20:02:39.000000000 +0100 ++++ gnome-shell-3.8.1/js/ui/status/power.js 2013-04-18 20:32:18.000000000 +0200 +@@ -7,7 +7,7 @@ const PanelMenu = imports.ui.panelMenu; const PopupMenu = imports.ui.popupMenu; diff -Nru gnome-shell-3.8.1/debian/patches/series gnome-shell-3.8.1/debian/patches/series --- gnome-shell-3.8.1/debian/patches/series 2013-04-17 00:35:07.000000000 +0200 +++ gnome-shell-3.8.1/debian/patches/series 2013-04-18 20:36:41.000000000 +0200 @@ -2,9 +2,9 @@ #14_make-GLX-optional.patch 27-nm-libexec-path.patch 30-remoteMenu-Prevent-the-shell-from-becoming-unrespons.patch -#ubuntu-lightdm-user-switching.patch #ubuntu_lock_on_suspend.patch calendar-remove-strict-check.patch revert-suspend-break.patch 00-Revert-global-don-t-run-a-garbage-collection-on-twee.patch revert-power-dbus-name-update.patch +gnome3.8ubuntuLightDMUserSwitch.patch