From f9c9934babb2b37cbfc80fd18ad024f77a5cfbe1 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 1 Mar 2017 12:40:07 +0000 Subject: [PATCH] support absolute named-pipe paths git-svn-id: https://xpra.org/svn/Xpra/trunk@15193 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/scripts/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/xpra/scripts/main.py b/src/xpra/scripts/main.py index baad2d46fa..618dbf2e18 100755 --- a/src/xpra/scripts/main.py +++ b/src/xpra/scripts/main.py @@ -1755,9 +1755,13 @@ def sockpathfail_cb(msg): if not WIN32: raise InitException("named pipes are only supported on MS Windows") import errno - from xpra.platform.win32.dotxpra import PIPE_PATH + from xpra.platform.win32.dotxpra import PIPE_PATH, PIPE_ROOT from xpra.platform.win32.namedpipes.connection import NamedPipeConnection, connect_to_namedpipe - path = PIPE_PATH+pipe_name + if pipe_name.startswith(PIPE_ROOT): + #absolute pipe path already specified + path = pipe_name + else: + path = PIPE_PATH+pipe_name try: pipe_handle = connect_to_namedpipe(path) except Exception as e: