Code sync
[external/hplip.git] / packaging / hplip-systray-longer-timeout-for-system-tray-start.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## hplip-systray-longer-timeout-for-system-tray-start.dpatch by  <till.kamppeter@gmail.com>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
6
7 @DPATCH@
8 diff -urNad hplip-3.9.10~/ui4/systemtray.py hplip-3.9.10/ui4/systemtray.py
9 --- hplip-3.9.10~/ui4/systemtray.py     2009-11-17 21:23:42.000000000 +0100
10 +++ hplip-3.9.10/ui4/systemtray.py      2009-11-29 21:34:01.399929476 +0100
11 @@ -706,7 +706,7 @@
12      app.setQuitOnLastWindowClosed(False) # If not set, settings dlg closes app
13  
14      i = 0
15 -    while i < 10:
16 +    while i < 180:
17          if QSystemTrayIcon.isSystemTrayAvailable():
18              break
19          time.sleep(1.0)