GNOME Bugzilla – Bug 644591
Use GNOME Session DBus in the status menu
Last modified: 2011-03-13 17:18:47 UTC
Using gnome-session-quit is not compatible with 2.32, making it impossible to power off and log out in older systems. Since the DBus interface did not change, we can use that instead.
Created attachment 183238 [details] [review] Status Menu: use Gnome Session DBus for shutdown and logout Around 2.91.90, gnome-session-save was renamed to gnome-session-quit. This commit restores compatibility with the older gnome-session, for those testing under GNOME 2.32 or below, by calling the DBus methods directly.
fwiw I added a patch with a similar purpose to the debian package, but I did differently, simply falling back on gnome-session-save if gnome-session-quit fails. http://svn.debian.org/viewsvn/pkg-gnome/packages/experimental/gnome-shell/debian/patches/04_gnome_session_quit.patch?revision=26842&view=markup
Review of attachment 183238 [details] [review]: Looks good and using DBUS directly makes sense anyway regardless of 2.32 compatibility.
Attachment 183238 [details] pushed as 73274e2 - Status Menu: use Gnome Session DBus for shutdown and logout
(In reply to comment #2) > fwiw I added a patch with a similar purpose to the debian package, Did you not open a bug here pointing to that patch? If so, please in the future do so.
Sure Colin, I do forward bugs, but that one was created two hours prior to this bug report, and had limited testing as the package is not yet uploaded (and also the patch was wrong as I assumed gnome-session-quit used the same arguments than gnome-session-save).