Re: Cancel session shutdown



Xavier Claessens wrote:
On dim, 2006-08-06 at 09:55 -0400, Havoc Pennington wrote:
Xavier Claessens wrote:
Hi,

I'm implementing D-Bus support in xchat/xchat-gnome and here is
something I want to do:

When the X session is closing and xchat has DCC transfers running I want
to be notified and in some cases cancel the session shutdown.

I'm sure that's some kind of thing possible with some D-Bus
methods/signals but I can't find anywhere documentation about that...
Can someone point me the good way for such things ?

Right now you have to do this with XSMP, gnome-session doesn't have a D-Bus protocol for it.

Havoc

Thanks ! Is there no protocol yet, or is it a reason to not use D-Bus ?


I'm not sure what you mean by "implementing D-Bus support" ; D-Bus is more a means to an end than an end in itself.

If your goal is to implement session management, then D-Bus isn't used for that right now, XSMP is. GNOME could certainly use D-Bus for it instead, but at the moment it does not.

I personally think XSMP should be replaced by a "shutdown protocol" on D-Bus plus a "startup programs" folder, since XSMP has lots of nasty complexity that nobody really understands or uses.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]