-
Notifications
You must be signed in to change notification settings - Fork 74
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
Not recording as a normal user, requires root #11
Comments
Hmmm not sure whats going on here, I dont have a linux machine so its hard to test but let me look into it 👀 |
I did some debugging. It is when the hotkeys are set. The keyboard module requires raw access to the input device and also for the user to be root (uid=0). Supposedly the pynput module can be used as a non-root user under X. Edit: markdown formatting |
Ah this is super helpful thanks for looking into it. I just uninstalled diablo 4 so I have space to install ubuntu, as soon as I get some time ill set it up and see if I can get it sorted. I think I originally used pynput for the hotkeys but swapped away for some reason, cant remember why though. Ill get testing when I can, let me know if you manage to come to any solutions on your side, feel free to make a PR if you do :) |
Syntax of keyboard module for hotkeys looks to be more readable then pynput. Pynput does have hotkeys equivalent and on 1st glance it should be possible to replace it. Maybe later I have time to fork and try and create a PR. Personal opinion: If you are thinking about Ubuntu then you may find Pop!_OS based on Ubuntu LTS a developer friendly and usable snap-less alternative. |
I think you switched because the tab and space keys cannot be used for hotkeys. |
hey folks, getting the same issue here..
will give the pynput a go |
Pynput is now used by default for non windows machines 😊 |
I cant seem to get pynput to capture keyboard inputs globally on my ubuntu setup, has anyone else managed to get this to work? The app has to be in focus for it to detect |
When I start the program, it immediately stops with the following error:
Failed to start the recorder: You must be root to use this library on linux.
I´d rather not run this as root. Sounddevice library can record as a normal user. How can I run this as a non-root user?
The text was updated successfully, but these errors were encountered: