Skip to content

Commit

Permalink
support absolute named-pipe paths
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@15193 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 1, 2017
1 parent 5987067 commit f9c9934
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f9c9934

Please sign in to comment.