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

Please do not use DISPLAY env variable to detect we are in graphical session #58

Open
bigon opened this issue Oct 6, 2018 · 2 comments

Comments

@bigon
Copy link
Contributor

bigon commented Oct 6, 2018

Hello

Now that wayland exists and that the installer will get wayland support when switching to GTK3 it's probably interesting to not rely on the DISPLAY environment variable (which is X11 specific)

An other way should be found for this

@augiekim
Copy link
Contributor

augiekim commented Jan 8, 2019

I'm not sure if this is correct, but it looks like XDG_SESSION_TYPE environment variable or loginctl show-session 2 -p Type is the only way to detect it?

@bigon
Copy link
Contributor Author

bigon commented Jan 8, 2019

Shouldn't you just try to initialize GTK and catch the exception if it fails?

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

No branches or pull requests

2 participants