Skip to content

Commit

Permalink
runtime: check for DISPLAY instead of XDG_CURRENT_DESKTOP to check if…
Browse files Browse the repository at this point in the history
… linux machine is GUIless or not (flet-dev#2373)

Signed-off-by: lucasew <[email protected]>
  • Loading branch information
lucasew authored and zrr1999 committed Jul 17, 2024
1 parent b531b70 commit 527e2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/packages/flet-runtime/src/flet_runtime/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def is_linux_server():
with open(p, "r") as file:
if "microsoft" in file.read():
return False # it's WSL, not a server
return os.environ.get("XDG_CURRENT_DESKTOP") is None
return os.environ.get("DISPLAY") is None
return False


Expand Down

0 comments on commit 527e2a4

Please sign in to comment.