X server args parsing fix

This commit is contained in:
Max Krasnyansky 2002-04-16 22:41:17 +00:00
parent 8720383cae
commit bcdc3df715

View File

@ -18,7 +18,7 @@ def set_display():
r,w = popen2.popen2(ps)
arg = string.split(r.read())
for i in range(1, len(arg)):
if arg[i][0] != '-':
if arg[i][0] != '-' and i==1:
disp = arg[i]
elif arg[i] == "-auth":
auth = arg[i+1]