diff --git a/gitso/trunk/GitsoThread.py b/gitso/trunk/GitsoThread.py index 5a3986a..8d9eeae 100755 --- a/gitso/trunk/GitsoThread.py +++ b/gitso/trunk/GitsoThread.py @@ -124,9 +124,9 @@ class GitsoThread(threading.Thread): listen = [] if sys.platform == 'darwin' or sys.platform.find('linux') != -1: if self.host <> "": - connection = os.popen('netstat -an | grep 5500 | grep ESTABLISHED').readlines() + connection = os.popen('LANG=C netstat -an | grep 5500 | grep ESTABLISHED').readlines() else: - listen = os.popen('netstat -an | grep 5500 | grep LISTEN').readlines() + listen = os.popen('LANG=C netstat -an | grep 5500 | grep LISTEN').readlines() elif sys.platform == 'win32': #XP PRO only -- Need to fix the case where there is no process, it'll still return 1 line. #info = os.popen('WMIC PROCESS ' + str(self.pid) + ' get Processid').readlines() diff --git a/gitso/trunk/Processes.py b/gitso/trunk/Processes.py index 7eba480..f864223 100644 --- a/gitso/trunk/Processes.py +++ b/gitso/trunk/Processes.py @@ -36,7 +36,10 @@ class Processes: if sys.platform == 'darwin': self.returnPID = os.spawnl(os.P_NOWAIT, '%sOSXvnc/OSXvnc-server' % self.paths['resources'], '%sOSXvnc/OSXvnc-server' % self.paths['resources'], '-connectHost', '%s' % host) elif sys.platform.find('linux') != -1: - self.returnPID = os.spawnlp(os.P_NOWAIT, 'x11vnc', 'x11vnc','-nopw','-ncache','20','-solid','black','-connect','%s' % host) + # We should include future versions with options for speed. + #self.returnPID = os.spawnlp(os.P_NOWAIT, 'x11vnc', 'x11vnc','-nopw','-ncache','20','-solid','black','-connect','%s' % host) + + self.returnPID = os.spawnlp(os.P_NOWAIT, 'x11vnc', 'x11vnc','-nopw','-ncache','20','-connect','%s' % host) elif sys.platform == 'win32': import subprocess self.returnPID = subprocess.Popen(['WinVNC.exe'])