gitso

gitso Commit Details


Date:2008-10-23 17:15:39 (16 years 1 month ago)
Author:gerberad
Branch:master
Commit:407217532191090014de0b53cfcb6821277994a7
Parents: 8e5e59d624ab10c723f26cd4d3580cc2aae023ac
Message:Fixed processes/threads for OS X.

Changes:

File differences

gitso/trunk/GitsoThread.py
1212
1313
1414
15
15
1616
1717
1818
self.error = False
self.pid = 0
self.running = True
self.process = Processes.Processes(paths)
self.process = Processes.Processes(self.window, paths)
threading.Thread.__init__(self)
gitso/trunk/Processes.py
11
22
3
34
45
56
6
7
78
9
810
911
1012
......
2628
2729
2830
29
31
3032
3133
3234
33
35
3436
3537
3638
#! /usr/bin/env python
import wx
import os, sys, signal, os.path
class Processes:
def __init__(self, paths):
def __init__(self, window, paths):
self.returnPID = 0
self.window = window
self.paths = paths
def getSupport(self, host):
if sys.platform == 'darwin':
if os.path.exists("/Applications/Utilities/X11.app") :
os.spawnl(os.P_WAIT, '/usr/bin/open', '/usr/bin/open', '/Applications/Utilities/X11.app')
dlg = wx.MessageDialog(self, "If it doesn't open shortly, please start it manually.", "Please wait while X11.app starts", wx.OK|wx.CENTRE|wx.ICON_INFORMATION)
dlg = wx.MessageDialog(self.window, "If it doesn't open shortly, please start it manually.", "Please wait while X11.app starts", wx.OK|wx.CENTRE|wx.ICON_INFORMATION)
dlg.ShowModal()
self.returnPID = os.spawnlp(os.P_NOWAIT, '%svncviewer/vncviewer' % self.paths['resources'], '%svncviewer/vncviewer' % self.paths['resources'], '-listen', '0')
else:
dlg = wx.MessageDialog(self, "We were unable to find X11.app in /Applications/Utilities", "To Give Support you need X11.app", wx.OK|wx.CENTRE|wx.ICON_ERROR)
dlg = wx.MessageDialog(self.window, "We were unable to find X11.app in /Applications/Utilities", "To Give Support you need X11.app", wx.OK|wx.CENTRE|wx.ICON_ERROR)
dlg.ShowModal()
elif sys.platform.find('linux') != -1:
self.returnPID = os.spawnlp(os.P_NOWAIT, 'vncviewer', 'vncviewer', '-listen')

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.06133s using 13 queries.