How is xfce4-session-logout linked to the Quit action button?
cl at isbd.net
Thu Dec 10 19:29:19 CET 2009
On Thu, Dec 10, 2009 at 06:52:24PM +0100, Nick Schermer wrote:
> 2009/12/10 Chris G <cl at isbd.net>:
> > On Thu, Dec 10, 2009 at 04:08:38PM +0100, Nick Schermer wrote:
> >> 2009/12/10 Chris G <cl at isbd.net>:
> >> > I want to add to/customise the actions available when you click on the
> >> > Quit button on the panel (the little green man). How does the button
> >> > link to xfce4-session-logout which is what pops up the window with the
> >> > various possible actions.
> >> >
> >> > Is there a script in there somewhere or is the call of xfce4-session-logout
> >> > hard coded?
> >> It asks the session to logout through the sm protocol, see
> >> libxfcegui4/libxfcegui4.session-client.c:logout_session().
> > Thanks, but that doesn't really answer the question. I was asking
> > what's "behind" the Quit button - i.e. when one clicks the button what
> > happens? Is there a script that calls xfce4-session-logout (via the
> > code you have told me about or otherwise) or is there an executable
> > directly linked to the pressing of the button?
> It calls xfce4-panel -q -> sm logout.
Ah, OK, I understand, the Quit button is 'part of' xfce4-panel, that
makes a lot of sense, thanks.
More information about the Xfce