summaryrefslogtreecommitdiffstats
path: root/xserver.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-22 06:08:21 +0000
committerMatt Wilson <msw@redhat.com>1999-09-22 06:08:21 +0000
commita5a190c37d15fa8ab0358c75ee3c19eff9eab3af (patch)
tree5f06da39e2dd4cf31028b99e93ac967179b4bc2d /xserver.py
parent3bf44a446bf6183f644ce864f17586716939db49 (diff)
downloadanaconda-a5a190c37d15fa8ab0358c75ee3c19eff9eab3af.tar.gz
anaconda-a5a190c37d15fa8ab0358c75ee3c19eff9eab3af.tar.xz
anaconda-a5a190c37d15fa8ab0358c75ee3c19eff9eab3af.zip
merge from jj
Diffstat (limited to 'xserver.py')
-rw-r--r--xserver.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/xserver.py b/xserver.py
index 1acec62d4..6ad62acbb 100644
--- a/xserver.py
+++ b/xserver.py
@@ -34,7 +34,7 @@ def startX():
except:
pass
elif mouseDev == 'sunmouse':
- mousePrototol = "Sun"
+ mouseProtocol = "sun"
mouseEmulate = 0
else:
mouseProtocol = "Microsoft"
@@ -106,16 +106,20 @@ EndSection
server = os.fork()
if (not server):
print "starting", serverPath
+ args = [serverPath, ':1', 'vt7']
if serverPath[0:19] == '/usr/X11R6/bin/Xsun':
try:
os.unlink("/dev/mouse")
except:
pass
os.symlink(mouseDev, "/dev/mouse")
- os.execv(serverPath, [serverPath, 'vt7', '-dev', '/dev/' + x.device])
+ if x.device:
+ args.append ("-dev")
+ args.append ('/dev/' + x.device)
else:
- os.execv(serverPath, [serverPath, ':1', '-xf86config',
- '/tmp/XF86Config', 'vt7'])
+ args.append("-xf86config")
+ args.append("/tmp/XF86Config")
+ os.execv(serverPath, args)
# give time for the server to fail (if it is going to fail...)
time.sleep (1)