Commit 152400c1 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

org.freedesktop.PowerManagement.Inhibit should only prevent suspend

For preventing screen standby or screen locking the org.freedesktop.ScreenSaver.Inhibit must be used.
Both calls erroneously did the same.

CHANGELOG: org.freedesktop.PowerManagement.Inhibit will only inhibit suspending the machine now (as per spec), to prevent screen power management use org.freedesktop.ScreenSaver.Inhibit instead

Differential Revision:
parent 8ba04f89
......@@ -98,10 +98,10 @@ int FdoConnector::Inhibit(const QString &application, const QString &reason)
// Inhibit here means we cannot interrupt the session.
// If we've been called from DBus, use PolicyAgent's service watching system
if (calledFromDBus()) {
return PolicyAgent::instance()->addInhibitionWithExplicitDBusService((uint)PolicyAgent::ChangeScreenSettings,
return PolicyAgent::instance()->addInhibitionWithExplicitDBusService((uint)PolicyAgent::InterruptSession,
application, reason, message().service());
} else {
return PolicyAgent::instance()->AddInhibition((uint)PolicyAgent::ChangeScreenSettings, application, reason);
return PolicyAgent::instance()->AddInhibition((uint)PolicyAgent::InterruptSession, application, reason);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment