31 lines
821 B
Diff
31 lines
821 B
Diff
From 8a89e70157ce76db498ee539c8b9de4fdf6bb1a2 Mon Sep 17 00:00:00 2001
|
|
From: Michal Schmidt <mschmidt@redhat.com>
|
|
Date: Thu, 26 Jul 2018 16:40:10 +0200
|
|
Subject: [PATCH 1/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 60e817f2c7..a1585f111b 100644
|
|
--- a/gajim/gajim.py
|
|
+++ b/gajim/gajim.py
|
|
@@ -50,6 +50,10 @@ def _init_gui(gui):
|
|
|
|
|
|
def _init_gtk():
|
|
+ # 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.20.1
|
|
|