ydotool
ydotool copied to clipboard
Specifying somewhere about Fedora's behaviour?
As seen in https://github.com/ReimuNotMoe/ydotool/issues/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.
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
@shellheim Works using the default input group for me