OpenSecurity/bin/opensecurity_tray.pyw
changeset 110 490a78181935
parent 96 630b62946c9e
child 111 a2c7f29d3683
     1.1 --- a/OpenSecurity/bin/opensecurity_tray.pyw	Tue Mar 18 16:31:47 2014 +0100
     1.2 +++ b/OpenSecurity/bin/opensecurity_tray.pyw	Wed Apr 02 10:41:00 2014 +0100
     1.3 @@ -44,7 +44,9 @@
     1.4  # local
     1.5  from about import About
     1.6  from environment import Environment
     1.7 -
     1.8 +from cygwin import Cygwin
     1.9 +import threading
    1.10 +import time
    1.11  # ------------------------------------------------------------
    1.12  # code
    1.13  
    1.14 @@ -102,6 +104,7 @@
    1.15          try:
    1.16          
    1.17              # get a proper browsing VM
    1.18 +            Cygwin.start_X11()
    1.19              browsing_vm = urllib2.urlopen('http://127.0.0.1:8080/browsing').readline()
    1.20              #dlg_launch_image = os.path.join(sys.path[0], 'launch.pyw')
    1.21              #process_command = [sys.executable, dlg_launch_image, browsing_vm, '/usr/bin/iceweasel']
    1.22 @@ -154,10 +157,8 @@
    1.23          cAcLaunch.triggered.connect(self.clicked_launch_application)
    1.24          cAcAbout.triggered.connect(self.clicked_about)
    1.25          cAcExit.triggered.connect(self.clicked_exit)
    1.26 -        
    1.27 -        
    1.28 +                           
    1.29  def main():
    1.30 -    
    1.31      app = QtGui.QApplication(sys.argv)
    1.32  
    1.33      # prebuild the pixmap cache: fetch all jpg, png and jpeg images and load them