OpenSecurity/bin/cygwin.py
changeset 97 f274426bdbb4
parent 96 630b62946c9e
child 110 490a78181935
     1.1 --- a/OpenSecurity/bin/cygwin.py	Tue Mar 18 16:31:47 2014 +0100
     1.2 +++ b/OpenSecurity/bin/cygwin.py	Tue Mar 18 18:00:12 2014 +0100
     1.3 @@ -197,12 +197,12 @@
     1.4      # executes command over ssh on guest vm with X forwarding
     1.5      @staticmethod
     1.6      def sshExecuteX11(command, address, user_name, certificate, wait_return=True):
     1.7 -        return Cygwin.bashExecute('"DISPLAY=:0.0 /usr/bin/ssh -v -Y -i \\"' + certificate +'\\" ' + user_name + '@' + address + ' ' + command + '\"')
     1.8 +        return Cygwin.bashExecute('DISPLAY=:0.0 /usr/bin/ssh -v -Y -i \\\"' + certificate +'\\\" ' + user_name + '@' + address + ' ' + command + '')
     1.9  
    1.10      @staticmethod
    1.11      def is_X11_running():
    1.12          """check if we can connect to a X11 running instance"""
    1.13 -        p = Cygwin.bashExecute('DISPLAY=:0 /usr/bin/xset -q')
    1.14 +        p = Cygwin.bashExecute('DISPLAY=:0 xset -q') #/usr/bin/
    1.15          return p[0] == 0
    1.16          
    1.17