After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 507391 - Build a standalone logout/shutdown binary
Build a standalone logout/shutdown binary
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: general
2.20.x
Other Linux
: Normal enhancement
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks: 507393
 
 
Reported: 2008-01-05 00:08 UTC by Josselin Mouette
Modified: 2008-06-06 00:50 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Build gnome-panel-logout (7.93 KB, patch)
2008-01-05 00:10 UTC, Josselin Mouette
none Details | Review
Build gnome-panel-logout (8.05 KB, patch)
2008-02-16 17:48 UTC, Josselin Mouette
none Details | Review
Patch of using gnome-session dbus interface (2.15 KB, patch)
2008-05-13 08:55 UTC, Xiurong Simon Zheng
none Details | Review

Description Josselin Mouette 2008-01-05 00:08:24 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.
Comment 1 Josselin Mouette 2008-01-05 00:10:25 UTC
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.
Comment 2 Xiurong Simon Zheng 2008-01-20 04:02:38 UTC
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.
Comment 3 Andrea Ratto 2008-02-13 17:37:13 UTC
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...
Comment 4 Josselin Mouette 2008-02-16 17:48:14 UTC
Created attachment 105397 [details] [review]
Build gnome-panel-logout

This new version fixes a very stupid bug which prevented gnome-panel-logout from exiting.
Comment 5 Xiurong Simon Zheng 2008-05-13 08:55:59 UTC
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.
Comment 6 Vincent Untz 2008-06-06 00:50:25 UTC
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.