diff --git a/actors/linux/debian/udsactor.postinst b/actors/linux/debian/udsactor.postinst index c7e4a122..c7052a14 100755 --- a/actors/linux/debian/udsactor.postinst +++ b/actors/linux/debian/udsactor.postinst @@ -5,7 +5,7 @@ set -e case "$1" in configure) - /usr/bin/python2.7 -m compileall /usr/share/UDSActor > /dev/nul 2>&1 + /usr/bin/python3 -m compileall /usr/share/UDSActor > /dev/nul 2>&1 # If new "fresh" install or if configuration file has disappeared... if [ "$2" = "" ] || [ ! -f /etc/udsactor/udsactor.cfg ]; then db_get udsactor/host diff --git a/actors/src/UDSActorUser.py b/actors/src/UDSActorUser.py index efe52c43..b8dc6a87 100644 --- a/actors/src/UDSActorUser.py +++ b/actors/src/UDSActorUser.py @@ -99,7 +99,7 @@ class MessagesProcessor(QtCore.QThread): information = QtCore.pyqtSignal(dict, name='information') def __init__(self): - super(self.__class__, self).__init__() + super(MessagesProcessor, self).__init__() # Retries connection for a while for _ in range(10): try: @@ -313,12 +313,13 @@ class UDSSystemTray(QtGui.QSystemTrayIcon): self.aboutDlg.exec_() def quit(self, logoff=False, extra=''): - global doLogoff + global doLogoff # pylint: disable=global-statement logger.debug('Quit invoked') if not self.stopped: self.stopped = True try: # If we close Client, send Logoff to Broker + # if sys.platform != 'win32': self.ipc.sendLogout(operations.getCurrentUser() + extra) self.timer.stop() self.ipc.stop() @@ -355,6 +356,7 @@ if __name__ == '__main__': # Catch kill and logout user :) signal.signal(signal.SIGTERM, sigTerm) + # app.aboutToQuit.connect() res = app.exec_() logger.debug('Exiting')