It failed again today :-( (maybe because my login took a long time today)
The problem is at the end of ui4/systemtray.py:
def run(read_pipe):
log.set_module("hp-systray(qt4)")
log.debug("PID=%d" % os.getpid())
app = SystemTrayApp(sys.argv, read_pipe)
app.setQuitOnLastWindowClosed(False) # If not set, settings dlg closes app
i = 0
while i < 60:
if QSystemTrayIcon.isSystemTrayAvailable():
break time.sleep(1.0)
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.UnicodeUTF8), QApplication.translate("SystemTray", "HPLIP Status Service",
None, QApplication.UnicodeUTF8))
else:
notifier = QSocketNotifier(read_pipe, QSocketNotifier.Read) QObject.connect(notifier, SIGNAL("activated(int)"), app.notifierActivated)
app.exec_()
Looking at:
i = 0
while i < 10:
if QSystemTrayIcon.isSystemTrayAvailable():
break time.sleep(1.0)
i += 1
I am not sure if would be better to increase time.sleep or "while i <..." ?
What do you think?
Thanks
(well, I would try now time.sleep but I would prefer to wait for suggestions)
It failed again today :-( (maybe because my login took a long time today)
The problem is at the end of ui4/systemtray.py: set_module( "hp-systray( qt4)") debug(" PID=%d" % os.getpid())
def run(read_pipe):
log.
log.
app = SystemTrayApp( sys.argv, read_pipe) setQuitOnLastWi ndowClosed( False) # If not set, settings dlg closes app
app.
i = 0 .isSystemTrayAv ailable( ):
time.sleep( 1.0)
while i < 60:
if QSystemTrayIcon
break
i += 1
if not QSystemTrayIcon .isSystemTrayAv ailable( ):
FailureUI( None,
QApplicati on.translate( "SystemTray" , </b><p> Unable to start, exiting.</p>", UnicodeUTF8) ,
QApplicati on.translate( "SystemTray" , "HPLIP Status Service", UnicodeUTF8) ) (read_pipe, QSocketNotifier .Read)
QObject. connect( notifier, SIGNAL( "activated( int)"), app.notifierAct ivated)
"<b>No system tray detected on this system.
None, QApplication.
None, QApplication.
else:
notifier = QSocketNotifier
app.exec_()
Looking at: .isSystemTrayAv ailable( ):
time.sleep( 1.0)
i = 0
while i < 10:
if QSystemTrayIcon
break
i += 1
I am not sure if would be better to increase time.sleep or "while i <..." ?
What do you think?
Thanks
(well, I would try now time.sleep but I would prefer to wait for suggestions)