LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File no-systray-failure-message.patch of Package hplip (Project Printing)

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)