| Summary: | music player prevent lock screen | ||
|---|---|---|---|
| Product: | [Unmaintained] kscreenlocker | Reporter: | Guo Yunhe <i> |
| Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | bshah, kde |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Guo Yunhe
2019-07-20 17:09:48 UTC
KDE Screensaver does not block because of music players. /If/ that's happening it means the music player is explicitly requesting to block the screensaver. 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?
|