Skip to content

Commit

Permalink
allow display guess for xpra servers with use-display switch to avoid…
Browse files Browse the repository at this point in the history
… error when used

git-svn-id: https://xpra.org/svn/Xpra/trunk@8126 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 20, 2014
1 parent 88a2b82 commit fc19ef1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/xpra/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,14 @@ def run_server(error_cb, opts, mode, xpra_file, extra_args):
else:
if not opts.displayfd:
error_cb("displayfd support is not enabled on this system, you must specify the display to use")
# We will try to find one automaticaly
# Use the temporary magic value 'S' as marker:
display_name = 'S' + str(os.getpid())
if opts.use_display:
#only use automatic guess for xpra displays and not X11 displays:
from xpra.scripts.main import guess_xpra_display #@Reimport
display_name = guess_xpra_display(opts.socket_dir)
else:
# We will try to find one automaticaly
# Use the temporary magic value 'S' as marker:
display_name = 'S' + str(os.getpid())

if not shadowing and not proxying and not upgrading and opts.exit_with_children and not opts.start_child:
error_cb("--exit-with-children specified without any children to spawn; exiting immediately")
Expand Down

0 comments on commit fc19ef1

Please sign in to comment.