Verified Commit 9d4c947b authored by André's avatar André
Browse files

Ignore Xss idle monitor on wayland

Wayland doesn't provide XScreenSaver Extension.
parent 1609d931
Pipeline #6818 passed with stages
in 4 minutes and 7 seconds
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
from gi.repository import GLib from gi.repository import GLib
from gi.repository import GObject from gi.repository import GObject
from gajim.common import app
from gajim.common.const import Display
from gajim.common.const import IdleState from gajim.common.const import IdleState
log = logging.getLogger('gajim.c.idle') log = logging.getLogger('gajim.c.idle')
...@@ -317,6 +319,9 @@ def _get_idle_monitor(): ...@@ -317,6 +319,9 @@ def _get_idle_monitor():
except GLib.Error as error: except GLib.Error as error:
log.info('Idle time via D-Bus (GNOME) not available: %s', error) log.info('Idle time via D-Bus (GNOME) not available: %s', error)
if app.is_display(Display.WAYLAND):
return
try: try:
return XssIdleMonitor() return XssIdleMonitor()
except OSError as error: except OSError as error:
......
Markdown is supported
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