Let me add that analyzing the process list with grep is a rather poor hack, so the line
if ps -Af | grep -q '[k]desktop' && pidof dcopserver > /dev/null && test -x /usr/bin/dcop ; then in /etc/acpi/powerbtn.sh might yield false positive results (such as "kate kdesktop" etc.) The sophisticated way to do it is if ps -C kdesktop > /dev/null [...] or if pidof kdesktop > /dev/null [...] Kind regards, Thomas -- sometimes power button shuts down without asking https://bugs.launchpad.net/bugs/119063 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs