Skip to content

Commit

Permalink
#638: support starting new child via xpra control interface
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8305 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 27, 2014
1 parent 949ed3d commit 11172c9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/xpra/server/server_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(self):
"scaling", "scaling-control",
"suspend", "resume", "name", "ungrab",
"key", "focus",
"client"]
"client", "start", "start-child"]

self.init_encodings()
self.init_packet_handlers()
Expand Down Expand Up @@ -1131,6 +1131,15 @@ def set_value(ws, wid, window):
else:
commandlog.warn("client %s does not support client command %s", source, client_command[0])
return 0, "client control command '%s' forwarded to %s clients" % (client_command[0], count)
elif command in ("start", "start-child"):
if len(args)==0:
return argn_err("at least 1")
ignore = command=="start"
cmd = args
proc = self.start_child(" ".join(cmd), cmd, ignore)
if not proc:
return 1, "failed to start new child command %s" % str(cmd)
return 0, "new child started"
else:
return ServerCore.do_handle_command_request(self, command, args)

Expand Down

0 comments on commit 11172c9

Please sign in to comment.