GNOME Bugzilla – Bug 507391
Build a standalone logout/shutdown binary
Last modified: 2008-06-06 00:50:25 UTC
It would be very useful to build a standalone binary that only displays the logout dialog. It could be used from other applications requesting a logout instead of calling gnome-sessions’s dialog - I’m thinking about g-p-m. This would bring more consistency to the desktop.
Created attachment 102183 [details] [review] Build gnome-panel-logout This is an attempt that builds a small (30K) binary calling this logout window, which accepts a --shutdown argument to select the shutdown window instead.
Is there anyone review this patch? It's necessary to deal with the conflict of gnome-panel logout dialog and gnome-session logout dialog, at least a short-term solution.
please let us also have some way to do something like this: sleep NNN && gnome-logout --poweroff or wget XXX; gnome-logout --poweroff I really want to be able to shut down the pc without using sudo poweroff...
Created attachment 105397 [details] [review] Build gnome-panel-logout This new version fixes a very stupid bug which prevented gnome-panel-logout from exiting.
Created attachment 110833 [details] [review] Patch of using gnome-session dbus interface Dbus interfaces ""org.gnome.SessionManager" is available on latest gnome-session trunk. That is, gnome-session 2.23 provides a logout dialog and a shutdown dialog containing suspend, hibernate, shutdown and reboot buttons. I think this is a ultimate solution. Now gnome-panel should be depend on it instead of owning its dialog.
Thanks for your patch! I ended up writing something else, though, because I cleaned up the code a bit. We now use the gnome-session logout dialog, so closing.