Skip to content

Commit

Permalink
add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 24, 2024
1 parent 3d487e0 commit 127daf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3975,13 +3975,16 @@ def get_x11_display_info(display, sessions_dir="") -> dict[str, Any]:
mode = wminfo.get("xpra-server-mode", "")
# seamless servers and non-xpra servers should have a window manager:
if mode.find("seamless") >= 0 and not wminfo.get("_NET_SUPPORTING_WM_CHECK"):
log("no window manager found")
state = "DEAD"
else:
wmname = wminfo.get("wmname")
if wmname and wmname.lower().find("xpra") >= 0:
# check if the xpra server process still exists:
pid = wminfo.get("xpra-server-pid")
log(f"xpra server pid={pid}")
if not pid or (os.path.exists("/proc") and not os.path.exists(f"/proc/{pid}")):
log(f"xpra server pid {pid} not found!")
state = "DEAD"
else:
state = "LIVE"
Expand Down

0 comments on commit 127daf1

Please sign in to comment.