xfce4-session-logout from acpi script

Joost Kremers joostkremers at fastmail.fm
Tue Feb 12 13:45:14 CET 2008


hi all,

another question regarding my eeepc... pressing the power button on this
machine triggers an event that's registered by the acpi daemon. so i
thought i could have a script run xfce4-session-logout, but this doesn't
work because it cannot connect to the display. i'm guessing because it's
not running as the correct user.

i tried a couple of things (using su, setting DISPLAY, xhost) but nothing
works. is there a way to make this possible?

TIA

-- 
Joost Kremers
Life has its moments



More information about the Xfce mailing list