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

Silently run xinput due to warnings for (X)Wayland users #255

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Paiusco
Copy link
Contributor

@Paiusco Paiusco commented Nov 2, 2024

I considered to go for WAYLAND_DIPSLAY envvar, but that's not exactly there if we're running as root, which is mostly needed for the daemon.
Also considered another ways which would not be reliable... At least not as much as xinput itself does, using Xlibs, which seemed overkill for this situation.

So I went with running it silently, so we know that won't hurt the functionality, it'd just not work.
I could also use xinput to first check if we were into a (x)wayland session, but that would only make twice the call which is not really needed.

Currently there's no standard way among the compositors to check if we're in a session (AFAIK).
Feel free to let me know if there's a better way.

Closes #205

@Paiusco Paiusco changed the title Silently run xinput due to (X)Wayland users Silently run xinput due to warnings for (X)Wayland users Nov 2, 2024
Users of XWayland/Wayland that has xinput installed will be receiving warning/errors
due to xinput being used in a wayland sesison, it's safe to ignore it.
We could also try to find if we're in a wayland session by using Xlibs, but I think
this would've been overkill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant