https://bugs.kde.org/show_bug.cgi?id=410040

--- Comment #2 from Guo Yunhe <i...@guoyunhe.me> ---
In JuK, I found the related code:

QDBusInterface *pmInterface = new QDBusInterface(
                                     
QStringLiteral("org.kde.Solid.PowerManagement"),
                                     
QStringLiteral("/org/freedesktop/PowerManagement/Inhibit"),
                                     
QStringLiteral("org.freedesktop.PowerManagement.Inhibit"),
                                      QDBusConnection::sessionBus()
                                  );

It only inhibit power management.

Power management sets the automatic screen lock after N minutes. And it is
inhibited. This will prevent everything: turn off screen, lock screen, sleep.
But for music player, it only needs to prevent sleep. Do you know if such a
DBus interface exists?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to