ReimuNotMoe / ydotool

Generic command-line automation tool (no X!)
GNU Affero General Public License v3.0
1.36k stars 77 forks source link

Specifying somewhere about Fedora's behaviour? #217

Open callb4ck opened 7 months ago

callb4ck commented 7 months ago

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.

shellheim commented 2 months ago

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 commented 2 months ago

@shellheim Works using the default input group for me