Skip to content

Commit

Permalink
#1840 / #1931: if we have consumed the start[-child] command line opt…
Browse files Browse the repository at this point in the history
…ions, clear the values so we don't end up requesting those a second time

git-svn-id: https://xpra.org/svn/Xpra/trunk@20211 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 26, 2018
1 parent 0343838 commit fe67e58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,9 @@ def handshake_complete(*_args):
"start-new-session" : sns,
"connect" : True,
}
#we have consumed the start[-child] options
app.start_child_new_commands = []
app.start_new_commands = []
try:
conn, display_desc = connect()
#UGLY warning: connect will parse the display string,
Expand Down Expand Up @@ -1419,6 +1422,9 @@ def run_remote_server(error_cb, opts, args, mode, defaults):
proxy_args.append(params["display"])
for x in get_start_server_args(opts, compat=True):
proxy_args.append(shellquote(x))
#we have consumed the start[-child] options
opts.start_child = []
opts.start = []
params["display_as_args"] = proxy_args
#and use a proxy subcommand to start the server:
params["proxy_command"] = [{
Expand Down

0 comments on commit fe67e58

Please sign in to comment.