Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37836503
en ru br
ALT Linux repositórios
S:1.8.1-alt1
5.0: 0.12.1-alt1
4.1: 0.11.4-alt1.1.qa1
4.0: 0.11.4-alt1

Group :: Rede/Mensagens instantâneas
RPM: gajim

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0001-Prefer-X11-to-Wayland-GDK-backend.patch
Download


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
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009