shutdown (physical) button

Jean-Christophe jc.sid at
Mon Jun 16 01:05:17 CEST 2008

> I succeed making the panel power button working, but I have another problem:
> When I press my laptop power button, that powers off the computer, with 
> no popup, and not saving the session.
> So I have just to modify my /etc/acpi/ to make him launch 
> xfsm-shutdown-helper (or another command, maybe) with the right user 
> (this script is launched as root when power button is pressed)
> Any idea about what could be this command?
Ok I found this:
if  ps -A | grep xfce4-session ; then
    exit 0

which I put in, but it (xf4-session-logout) has to be 
launched as my user, not as root. How could I?
Regards again

More information about the Xfce mailing list