Comment 45 for bug 268734

Revision history for this message
In , Lukáš (luk-redhat-bugs) wrote :

As a followup, here's a quick method (Qt-way), to check for PowerDevil's presence:

QDBusInterface kdedInterface("org.kde.kded", "/kded", "org.kde.kded");
QDBusReply<QStringList> reply = kdedInterface.call("loadedModules");
if (reply.isValid() && reply.value().contains("powerdevil"))
{
    // we are alive
}