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

Specifying somewhere about Fedora's behaviour? #217

Open
callb4ck opened this issue Nov 27, 2023 · 2 comments
Open

Specifying somewhere about Fedora's behaviour? #217

callb4ck opened this issue Nov 27, 2023 · 2 comments

Comments

@callb4ck
Copy link

As seen in #198, some people have trouble using ydotool on Fedora since by default the systemd service to start the deamon puts the socket in /tmp/ and accessible only by root.

I tried opening a bug report here: https://bugzilla.redhat.com/show_bug.cgi?id=2250692

Unfortunately this lead nowhere, so I'd like to add a warning somewhere (perhaps the readme or another doc page) about usage on Fedora and a guide on how to fix this problem without the use of sudo (details described in the bug report).

To quote what I wrote in the bug report directly:

A good solution that has been adopted by other projects would be to apply the following udev rule in a file called /lib/udev/rules.d/80-uinput.rules:

KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"

(This rule has been taken directly from the ydotool Arch Linux package, and I tested it successfully on Fedora 39)

Then create a input group and add the user to that group to be able to use ydotool.

Then create a user service to start ydotoold instead of a regular one.

@callb4ck callb4ck changed the title Specifying somewhere about Fedora's beahviour? Specifying somewhere about Fedora's behaviour? Nov 27, 2023
@shellheim
Copy link

shellheim commented Apr 26, 2024

So that's why despite using chown the file permissons go back to root on Fedora 40. When you say create an input groupt and add the user to it, is the default input group or some other custom group? @DumbMahreeo

@pointydev
Copy link

@shellheim Works using the default input group for me

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

4 participants
@pointydev @callb4ck @shellheim and others