Skip to content

Commit

Permalink
stricter display matching: "matching_display" may have been populated…
Browse files Browse the repository at this point in the history
… from displayfd

git-svn-id: https://xpra.org/svn/Xpra/trunk@17970 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 10, 2018
1 parent d3d2045 commit 54d8e36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3014,17 +3014,18 @@ def identify_new_socket(proc, dotxpra, existing_sockets, matching_display, new_s
lines = out.splitlines()
log("id(%s): %s", socket_path, csv(lines))
found = False
display = display_name
display = matching_display
for line in lines:
if line.startswith(UUID_PREFIX):
this_uuid = line[len(UUID_PREFIX):]
if this_uuid==new_server_uuid:
found = True
elif line.startswith(DISPLAY_PREFIX):
display = line[len(DISPLAY_PREFIX):]
if display_name and display==display_name:
if display and display==matching_display:
found = True
if found:
assert display, "display value not found in id output"
return socket_path, display
except Exception as e:
warn("error during server process detection: %s" % e)
Expand Down

0 comments on commit 54d8e36

Please sign in to comment.