Skip to content

Commit

Permalink
when running against Xvfb, there is no logfile argument!
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@12026 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 24, 2016
1 parent 76e1510 commit 50b9dec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xpra/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,10 @@ def start_Xvfb(xvfb_str, display_name, cwd):
#identify logfile argument if it exists,
#as we may have to rename it, or create the directory for it:
xvfb_cmd = xvfb_str.split()
logfile_argindex = xvfb_cmd.index('-logfile')
try:
logfile_argindex = xvfb_cmd.index('-logfile')
except:
logfile_argindex = -1
assert logfile_argindex+1<len(xvfb_cmd), "invalid xvfb command string: -logfile should not be last"
tmp_xorg_log_file = None
if logfile_argindex>0:
Expand Down

0 comments on commit 50b9dec

Please sign in to comment.