# HG changeset patch # User mb # Date 1389271352 -3600 # Node ID 495ebaa3af5b4212dd41cb248ebcccecb4ce56b6 # Parent eb36e1b4a2e13fe0cf90504e571ad4d6c035587d# Parent fe6af6fe12285558623237ef37baa64638f42353 opensec_tray changes diff -r eb36e1b4a2e1 -r 495ebaa3af5b OpenSecurity/bin/opensecurity_tray.pyw --- a/OpenSecurity/bin/opensecurity_tray.pyw Thu Jan 09 11:20:39 2014 +0100 +++ b/OpenSecurity/bin/opensecurity_tray.pyw Thu Jan 09 13:42:32 2014 +0100 @@ -108,7 +108,6 @@ process_command = [sys.executable, dlg_launch_image, browsing_vm, '/usr/bin/iceweasel'] print(process_command) process = subprocess.Popen(process_command, shell = False) - process.communicate() except: dlg.hide() @@ -130,14 +129,8 @@ process_command = [sys.executable, dlg_launch_image] print(process_command) process = subprocess.Popen(process_command, shell = False) - process.communicate() - def clicked_refresh(self): - """clicked refresh""" - self.setup_ui() - - def setup_ui(self): """create the user interface As for the system tray this is 'just' the context menu. @@ -154,13 +147,11 @@ # add standard menu items cAcLaunch = menu.addAction(QtGui.QIcon(QtGui.QPixmapCache.find('opensecurity_icon_64')), 'Lauch Application') menu.addSeparator() - cAcRefresh = menu.addAction('Refresh') cAcAbout = menu.addAction("About") cAcExit = menu.addAction("Exit") cAcBrowser.triggered.connect(self.clicked_browser) cAcLaunch.triggered.connect(self.clicked_launch_application) - cAcRefresh.triggered.connect(self.clicked_refresh) cAcAbout.triggered.connect(self.clicked_about) cAcExit.triggered.connect(self.clicked_exit)