Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: check for DISPLAY instead of XDG_CURRENT_DESKTOP to check if linux machine is GUIless or not #2373

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

lucasew
Copy link
Contributor

@lucasew lucasew commented Jan 11, 2024

DISPLAY instruct processes which Xorg server to communicate basically, or at least are a obvious sign that there is some kind of X server available.

In environments, such as TMUX sessions, DISPLAY is propagated inside but the same doesn't happen with XDG_CURRENT_DESKTOP so it happens that one launches a session but no windows shows up, even though if one start the frontend process pointing to the socket in the logs and it works just fine.

BTW I am packaging the flutter module to nixpkgs [1] and I was stuck for a few hours on this until I found out about this check. Basically the approach is to use a hardcoded packaged flutter core instead of flet having to download and failing to run because Nix don't use the concept of global libraries like other distros do.

[1] https://github.com/NixOS/nixpkgs/pull/279936/files

… linux machine is GUIless or not

Signed-off-by: lucasew <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Jan 11, 2024

CLA assistant check
All committers have signed the CLA.

@FeodorFitsner FeodorFitsner merged commit 24d8863 into flet-dev:main Jan 11, 2024
2 checks passed
zrr1999 pushed a commit to zrr1999/flet that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants