Checking for a running kded is not enough because a running kded does
not guarantee that the PowerDevil service is actually running. Checking
if kded is running AND if the PowerDevil module is loaded should be the
way to go (this is actually the way klaptopdaemon was being checked for
by powerbtn.sh).

The rest of the patch merely ports to KDE4 the existing logout/shutdown
logic for KDE3. The code became a little bit longer because D-BUS
doesn't have an equivalent for DCOP's --all-sessions and --all-users
options.

-- 
immediate shutdown after pressing shutdown button
https://bugs.launchpad.net/bugs/268734
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

Reply via email to