Re, attached replacement script.
Based on this test not printing 'kde':
if pidof gnome-power-manager kpowersave > /dev/null || (pidof dcopserver >
/dev/null && test -x /usr/bin/dcop && /usr/bin/dcop kded kded loadedModules |
grep -q klaptopdaemon | pidof kded4 > /dev/null) ; then echo "kde"; fi
I think maybe the test should be like this (note brackets and double bars):
if pidof gnome-power-manager kpowersave > /dev/null ||
(pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop kded
kded loadedModules | grep -q klaptopdaemon) || pidof kded4 > /dev/null ; then
exit
fi
** Attachment added: "powerbtn.sh"
http://launchpadlibrarian.net/24705120/powerbtn.sh
--
acpid steals powerbutton events from powerdevil
https://bugs.launchpad.net/bugs/321100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs