marsqing / libinput-three-finger-drag

Three-finger-drag support for libinput
MIT License
87 stars 11 forks source link

Question: is this intended to be run as root? #3

Closed huned closed 3 years ago

huned commented 3 years ago

Question: is this intended to be run as root?

More info: I downloaded the binary and ran it as a non-root user and got some permissions errors (and 3-finger drag didn't work). Running it as root, however, produces no errors and 3-finger-drag works.

In case useful, here's the output from running as non-root user:

$ ./libinput-three-finger-drag 
Failed to open /dev/input/event3 (Permission denied)
Failed to open /dev/input/event4 (Permission denied)
Failed to open /dev/input/event1 (Permission denied)
Failed to open /dev/input/event0 (Permission denied)
Failed to open /dev/input/event2 (Permission denied)
Failed to open /dev/input/event9 (Permission denied)
Failed to open /dev/input/event11 (Permission denied)
Failed to open /dev/input/event12 (Permission denied)
Failed to open /dev/input/event13 (Permission denied)
Failed to open /dev/input/event6 (Permission denied)
Failed to open /dev/input/event5 (Permission denied)
Failed to open /dev/input/event8 (Permission denied)
Failed to open /dev/input/event10 (Permission denied)
Expected device added events on startup but got none. Maybe you don't have the right permissions?
^C
marsqing commented 3 years ago

Root is not necessary. Just add yourself to the input group. You can verify by running libinput debug-events. There should be no error.

huned commented 3 years ago

Thank you - that worked perfectly.