hplip/ui5-systemtray-wait-only-10s-for-system-tray.patch
Martin Wilck 27dc72374e Accepting request 682656 from home:mwilck:branches:Printing
- Fix hp-toolbox exiting after 10s under GNOME (bsc#1112331)
  * removed ui5-systemtray.py-make-children-exit-if-no-systray-f.patch
  Patch "ui5-systemtray-wait-only-10s-for-system-tray.patch" is
  sufficient to fix the logout problem (bsc#1112331, lp#1721534)

OBS-URL: https://build.opensuse.org/request/show/682656
OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=165
2019-03-08 21:44:06 +00:00

28 lines
812 B
Diff

From 92ddbb36e2a589fe4d1cf27c30b67a1bb12bf9dc Mon Sep 17 00:00:00 2001
From: Martin Wilck <mwilck@suse.com>
Date: Fri, 16 Nov 2018 11:00:44 +0100
Subject: [PATCH] ui5/systemtray: wait only 10s for system tray
On GNOME >= 3.26, it will never show up. This may cause hangs on
logout if users log in and log out quickly again.
---
ui5/systemtray.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui5/systemtray.py b/ui5/systemtray.py
index a0cdaf1..101807a 100644
--- a/ui5/systemtray.py
+++ b/ui5/systemtray.py
@@ -841,7 +841,7 @@ def run(read_pipe):
app.setQuitOnLastWindowClosed(False) # If not set, settings dlg closes app
i = 0
- while i < 60:
+ while i < 10:
if QSystemTrayIcon.isSystemTrayAvailable():
break
time.sleep(1.0)
--
2.21.0