[PATCH] Trigger an inhibition in ksmserver upon logout

Oswald Buddenhagen ossi at kde.org
Sat Feb 14 16:44:35 GMT 2009


On Sat, Feb 14, 2009 at 04:37:30PM +0100, Dario Freddi wrote:
> On sabato 14 febbraio 2009 16:11:56 Oswald Buddenhagen wrote:
> > powerdevil relying on being disabled in time implies that Other
> > Session Managers have to do it too,
> 
> True indeed. Though there is a freedesktop.org specification for
> inhibition [...] we reach more Power managers without changing a
> single line of code, and that's exactly what we want.
> 
i guess, it is indeed unlikely to encounter a power manager which does
not implement the d-bus interface, so this is the smaller worry.
encountering a session manager which does not think that treating power
managers specially is his responsibility is much more likely, though.
i'm not sure how much powerdevil is (going to be) used outside a kde
environment and how much e.g. the xsm maintainers are purists, so the
risk here is entirely unknown to me.

> Considering what I said above, do you still think it should be better
> to hook PowerDevil into KSM and catch the save status signal?
> 
"better" depends on your priorities. :D
i still think KSM would be *cleaner*.
the decision is ultimately with lubos.




More information about the kde-core-devel mailing list