hplip/no-systray-failure-message.patch
Martin Wilck e6bb46562e Accepting request 533763 from home:mgorse:branches:Printing
- Add no-systray-failure-message.patch: don't display an error if
  unable to find a system tray (boo#1061211).

OBS-URL: https://build.opensuse.org/request/show/533763
OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=149
2017-10-13 10:41:16 +00:00

18 lines
791 B
Diff

diff -urp hplip-3.17.9.orig/ui5/systemtray.py hplip-3.17.9/ui5/systemtray.py
--- hplip-3.17.9.orig/ui5/systemtray.py 2017-09-19 02:29:18.000000000 -0500
+++ hplip-3.17.9/ui5/systemtray.py 2017-10-12 15:39:43.456026353 -0500
@@ -848,12 +848,7 @@ def run(read_pipe):
i += 1
if not QSystemTrayIcon.isSystemTrayAvailable():
- FailureUI(None,
- QApplication.translate("SystemTray",
- "<b>No system tray detected on this system.</b><p>Unable to start, exiting.</p>",
- None),
- QApplication.translate("SystemTray", "HPLIP Status Service",
- None))
+ exit(0)
else:
notifier = QSocketNotifier(read_pipe, QSocketNotifier.Read)
# QObject.notifier.activated[int].connect(app.notifierActivated)