|
|
|
@ -83,7 +83,6 @@ class SysTray(QtWidgets.QSystemTrayIcon):
|
|
|
|
|
self.icon_off.addPixmap(QtGui.QPixmap(self.ICON_NO_UPDATE))
|
|
|
|
|
self.update(has_updates=False)
|
|
|
|
|
self.setVisible(True)
|
|
|
|
|
print("BEEP")
|
|
|
|
|
|
|
|
|
|
def run_cl_gui_update(self):
|
|
|
|
|
method = "update"
|
|
|
|
@ -225,8 +224,9 @@ class CheckThread(QtWidgets.QMainWindow, UpdateInfo):
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
import sys
|
|
|
|
|
if os.fork():
|
|
|
|
|
sys.exit(1)
|
|
|
|
|
pid = os.fork()
|
|
|
|
|
if pid != 0:
|
|
|
|
|
sys.exit(0)
|
|
|
|
|
if not user_can_run_update(True):
|
|
|
|
|
sys.stderr.write(_("User can not to perform the system update") + "\n")
|
|
|
|
|
sys.exit(1)
|
|
|
|
@ -248,15 +248,10 @@ if __name__ == '__main__':
|
|
|
|
|
try:
|
|
|
|
|
bus = dbus.SessionBus()
|
|
|
|
|
except dbus.exceptions.DBusException as e:
|
|
|
|
|
print(e)
|
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
remote_object = bus.get_object(DBUS_NAME_UPDATER, DBUS_APP_UPDATER)
|
|
|
|
|
g = dbus.Interface(remote_object, DBUS_NAME_UPDATER)
|
|
|
|
|
props = g.getProperties()
|
|
|
|
|
# print("already running")
|
|
|
|
|
# print(props)
|
|
|
|
|
sys.exit(1)
|
|
|
|
|
except Exception as e:
|
|
|
|
|
pass
|
|
|
|
|