Comment 19 for bug 268734

Revision history for this message
Darwin Bautista (baudm) wrote :

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.