shutdown (physical) button
jc.sid at free.fr
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/powerbtn.sh 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
which I put in powerbtn.sh, but it (xf4-session-logout) has to be
launched as my user, not as root. How could I?
More information about the Xfce