On Mon, 2008-05-12 at 19:31 +0200, Wouter Bolsterlee wrote: > 2008-05-12 klockan 18:55 skrev Karl Lattimer: > > I'm just looking into building gnome-main-menu for fedora 9, I noticed > > the lack of an actual exit function callable via the command line, > > instead I can call gnome-session-save --kill to log out, but only log > > out. > > > > I looked through the gnome-panel source code to find out how the panel > > calls the shutdown/hibernate etc... functions and find out that it is > > built into the panel. It is also not available in the devel package as a > > method callable by external applications. > > > > It seems ludicrous to me that in order to build a replacement panel > > menu, a completely new implementation of the logout screen must be > > created. Is it not possible therefore to expose panel-logout in the > > header files along side similar functions e.g. connect to server and > > possibly other panel actions? > > Debian includes a gnome-panel-logout binary to provide the logout dialog as > a standalone program. It makes much sense to get this upstream. > > Look at the patches in the Debian package for gnome-panel [1] (notably the > one in experimental; see the .diff.gz [2] available from [3].
Probably a standalone binary gnome-panel-logout is a workaround for gnome-session 2.22. For the long term, gnome-session 2.23 have resolved this issue. Shutdown and logout dialog are moved into gnome-session. gnome-panel and other applications can require this via gnome-session dbus interface. For new gnome-session, you can refer to below http://live.gnome.org/SessionManagement/NewGnomeSession D-Bus inteface "org.gnome.SessionManager" is already available on gnome-session trunk, On gnome-panel side, we only need a patch to call new interface instead of owning gnome-panel specific dialog. I just made a patch, hopefuly the patch can be push upstream in accordance with new gnome-session. More details, please see http://bugzilla.gnome.org/show_bug.cgi?id=507391 Thanks, -Simon
_______________________________________________ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list