Skip to content

Improve display protocol detection#211

Merged
eylles merged 5 commits intoeylles:masterfrom
igortxra:improve-display-protocol-detection
Jan 26, 2026
Merged

Improve display protocol detection#211
eylles merged 5 commits intoeylles:masterfrom
igortxra:improve-display-protocol-detection

Conversation

@igortxra
Copy link
Contributor

Solves #210

x11 and wayland detection works even independently of how the session was started.

@igortxra
Copy link
Contributor Author

igortxra commented Jan 21, 2026

I tested in a virtual machine running x11, i didn't test with wayland yet

@igortxra igortxra closed this Jan 21, 2026
@igortxra
Copy link
Contributor Author

Closed because it makes more sense to set the environment variables as described by eylles here

@eylles
Copy link
Owner

eylles commented Jan 21, 2026

hmm i kinda like the ideas here tho, maybe as a fallback if XDG_SESSION_TYPE is either unset or set to something other than either of x11 or wayland, then fallaback to the detect display_protocol function to try and check if the session type is either x11 or wayland.

Re-Enable the XDG_SESSION_TYPE check as the primary way to detect if the session
is x11 or wayland. If the XDG_SESSION_TYPE is not available try to detect the
display protocol as a fallback.
Yeh i unfortunately do care about the formatting this much.
Also re-structure the information to be (hopefully) easier to read.
@eylles eylles reopened this Jan 26, 2026
@eylles eylles merged commit 94b9a07 into eylles:master Jan 26, 2026
1 check passed
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.

2 participants