Closed czhang03 closed 11 months ago
I'm not sure how to fix this, but I have some toubleshooting suggestions :)
May 25 14:13:06 fedora (ouseless)[7703]: mouseless-daemon.service: Failed to locate executable /usr/local/bin/mouseless: Permission denied
May 25 14:13:06 fedora (ouseless)[7703]: mouseless-daemon.service: Failed at step EXEC spawning /usr/local/bin/mouseless: Permission denied
ls -ahlZ
. Why the -Z? because you are running fedora which has SELinux enabled by default. Might be worth a shot to put SELinux in permissive mode and check journalctl to see if it makes a difference when restarting the service :)It is indeed the problem of SELinux, I redownloaded and extract it as sudo, then everything worked. I am not sure how would you write it as a guide, but the setup above indeed works for me.
Is there a way to start mouseless on system start without allowing the current user to read keyboard input?
I think allowing user to read keyboard input seems dangerous, since that enables the possiblity of keyloggers. However I do aware that Windows allow user to read keyboard input without elevated previlages. But it seems more secure to only allow elevated program to read keyboard input.
I understand this is not necessarily related to mouseless, but I was wondering if anyone can help me here. And if we were able to find a simple way, maybe we can add it to the readme so that others can use this setup as well.
Here is what I have tried, apparently most people thinkg
systemtcl
is the modern way to do this. So I created the following file/etc/systemd/system/mouseless-daemon.service
:However I keep getting the following error in
systemctl status mouseless-daemon.service
When running
/usr/local/bin/mouseless --config /usr/local/share/config/config.yaml
as sudo works perfectly fine.I was wondering if I can get any help with regard to this.