From e323a681fd821256b37079c60e308a1c130693c2 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Thu, 26 Jul 2018 16:40:10 +0200 Subject: [PATCH 2/3] Prefer X11 to Wayland GDK backend Gtk.StatusIcon is not implemented for Wayland. Prefer running with the 'x11' GDK backend, where the status icon works. --- gajim/gajim.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gajim/gajim.py b/gajim/gajim.py index c2e1f9ace5..56923bc5fb 100644 --- a/gajim/gajim.py +++ b/gajim/gajim.py @@ -43,6 +43,10 @@ import signal import locale from urllib.parse import unquote +# Prefer x11 to wayland for a working Gtk.StatusIcon +if 'GDK_BACKEND' not in os.environ: + os.environ['GDK_BACKEND']='x11' + import gi gi.require_version('GLib', '2.0') gi.require_version('Gio', '2.0') -- 2.17.1