Package: acpid
Version: 1.0.6-10
Severity: normal

Let's figure that root is logged in KDE, and a server crash happens.
This leaves two files .DCOPserver_* that point to nowhere and make
the dcop call in powerbtn.sh fail, which causes power button to
lose its functionality forever, even after rebooting.

A simple fix is change the existing code


if ps -Af | grep -q '[k]desktop' && test -f /usr/bin/dcop
then
dcop --all-sessions --all-users ksmserver ksmserver logout 0 2 0 && exit 0
else
    /sbin/shutdown -h now "Power button pressed"
fi


by



if ps -Af | grep -q '[k]desktop' && test -f /usr/bin/dcop
then
dcop --all-sessions --all-users ksmserver ksmserver logout 0 2 0 && exit 0
fi
/sbin/shutdown -h now "Power button pressed"



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to