From 12f471b3160ef2744a5d015bbd28bc991913fd09 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 28 Aug 2019 11:57:51 +0000 Subject: [PATCH] #1527 do create a specific named pipe, generate the path from the username we shadow as git-svn-id: https://xpra.org/svn/Xpra/trunk@23621 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/platform/win32/proxy_server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xpra/platform/win32/proxy_server.py b/src/xpra/platform/win32/proxy_server.py index 4f53817678..b773e42f24 100644 --- a/src/xpra/platform/win32/proxy_server.py +++ b/src/xpra/platform/win32/proxy_server.py @@ -41,6 +41,7 @@ def exec_command(username, command, env): log("Popen(%s)=%s", command, proc) return proc + class ProxyServer(_ProxyServer): def start_new_session(self, username, uid, gid, new_session_dict=None, displays=()): @@ -54,9 +55,11 @@ def start_win32_shadow(self, username, new_session_dict): #exec_command([whoami]) port = 10000 xpra_command = os.path.join(get_app_dir(), "xpra.exe") + named_pipe = username.replace(" ", "_") command = [ xpra_command, "shadow", + "--bind=%s" % named_pipe, "--bind-tcp=0.0.0.0:%i" % port, ] from xpra.log import debug_enabled_categories @@ -75,4 +78,4 @@ def start_win32_shadow(self, username, new_session_dict): raise Exception("shadow subprocess failed with exit code %s" % r) self.child_reaper.add_process(proc, "server-%s" % username, "xpra shadow", True, True) #exec_command(["C:\\Windows\notepad.exe"]) - return proc, "tcp/localhost:%i" % port, "Main" + return proc, "tcp/localhost:%i" % port, "named-pipe://%s" % named_pipe