I found the reason in my case: (see source below) when there is more than one dcopserver process, powerbtn.sh rudely shuts down all of them.
this (extra dcopserver) may come from a second kde session, but also (as in my case) from a "sudo kate powerbtn.sh" (the second dcopserver lives on!). i think the named behaviour is wrong. powerbtn.sh should either - ask the user in the currently active session - or just hibernate without destroying anything best aexl ps: remarkable fact that bugtracking helped trigger the bug in this case ;-) from /etc/acpi/powerbtn.sh: KDESES=`pidof dcopserver | wc -w` if [ $KDESES -eq 1 ] ; then # single KDE session -> ask user /usr/bin/dcop --all-sessions --all-users ksmserver ksmserver logout 1 2 0 exit 0 else # more than one KDE session - just send shutdown signal to all of them /usr/bin/dcop --all-sessions --all-users ksmserver ksmserver logout 0 2 0 && exit 0 fi -- sometimes power button shuts down without asking https://bugs.launchpad.net/bugs/119063 You received this bug notification because you are a member of Kubuntu Team, which is a bug contact for kde-guidance in ubuntu. -- kubuntu-bugs mailing list [EMAIL PROTECTED] https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs