mirror of
https://github.com/jellyfin/jellyfin-desktop.git
synced 2026-10-26 16:45:24 +00:00
Fix screensaver inhibition on Linux
This commit is contained in:
1 parent
83399a5c1e
commit
8823d11b38
1 file changed
+4
-4
@@ -103,7 +103,7 @@ void PowerComponentDBus::doDisableScreensaver()
|
||||
qInfo() << "doDisableScreensaver : already disabled.";
|
||||
return;
|
||||
}
|
||||
if (QDBusConnection::systemBus().isConnected())
|
||||
if (QDBusConnection::sessionBus().isConnected())
|
||||
{
|
||||
QDBusInterface iface(DBUS_SCREENSAVER_SERVICE_NAME, DBUS_SCREENSAVER_SERVICE_PATH,
|
||||
DBUS_SCREENSAVER_INTERFACE, QDBusConnection::sessionBus());
|
||||
@@ -128,7 +128,7 @@ void PowerComponentDBus::doDisableScreensaver()
|
||||
}
|
||||
else
|
||||
{
|
||||
qCritical() << "doDisableScreensaver : could not find system bus";
|
||||
qCritical() << "doDisableScreensaver : could not find session bus";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ void PowerComponentDBus::doEnableScreensaver()
|
||||
qInfo() << "doEnableScreensaver : already enabled.";
|
||||
return;
|
||||
}
|
||||
if (QDBusConnection::systemBus().isConnected())
|
||||
if (QDBusConnection::sessionBus().isConnected())
|
||||
{
|
||||
QDBusInterface iface(DBUS_SCREENSAVER_SERVICE_NAME, DBUS_SCREENSAVER_SERVICE_PATH,
|
||||
DBUS_SCREENSAVER_INTERFACE, QDBusConnection::sessionBus());
|
||||
@@ -165,7 +165,7 @@ void PowerComponentDBus::doEnableScreensaver()
|
||||
}
|
||||
else
|
||||
{
|
||||
qCritical() << "doEnableScreensaver : could not find system bus";
|
||||
qCritical() << "doEnableScreensaver : could not find session bus";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user