On Thu, 16.08.12 13:16, Robin Becker ([email protected]) wrote:

> On 16/08/2012 12:47, Mantas Mikulėnas wrote:
> >On Thu, Aug 16, 2012 at 2:23 PM, Robin Becker <[email protected]> wrote:
> ........
> >
> >It'd be a bit better if the button/lid events were handled by a
> >program running inside the Openbox session (the events can be read
> >from /run/acpid.socket).
> >
> I'm not exactly sure here, but aren't the standard power events in
> systemd handled by a daemon running outside openbox?
> 
> I thought that the handler kinds eg no-session, tty-session,
> any-session were supposed to allow some control over whether I can
> switch off the machine with other users logged on etc etc. Perhaps
> with cgroups those sorts of capabilities can be passed on to another
> program.
> 
> Openbox is actually running as a user process so it has no greater
> rights than the user; that makes the use of a more capable daemon a
> bit more reasonable.

Normally, logind only handles the power buttons if no X session is in
the foreground. If it is we assume that the DE on it handles the
power/sleep/lid events like any other key and does the right thing.

The ability to set things to "any-session" exists only for compatibility
if people run DEs that don't handle this internally, but it is not
interactive. 

If you want interactivity, then make your DE handle this key.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to