xfce4-session-logout from acpi script

Joost Kremers joostkremers at fastmail.fm
Tue Feb 12 18:52:34 CET 2008


On Tue, Feb 12, 2008 at 06:16:13PM +0100, Tino Keitel wrote:
> On Tue, Feb 12, 2008 at 18:09:38 +0100, Joost Kremers wrote:
> 
> [...]
> 
> > xfce4-session-logout: No session manager running.
> > 
> > even though ps shows that the session manager *is* running.
> 
> Maybe it relies on the SESSION_MANAGER variable? Just a wild guess...

could be. i've worked around it another way. powerbtn.sh (which is called
by acpid) has the following:

DISPLAY=:0.0 /home/<user>/bin/session-logout.sh

~/bin/session-logout.sh contains the command /usr/bin/xfce4-session-logout,
is owned by my user and is suid. (don't know if that is really necessary,
i'll try next time i have the eeepc running.) this way it works.


-- 
Joost Kremers
Life has its moments



More information about the Xfce mailing list