-
Notifications
You must be signed in to change notification settings - Fork 112
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
--watch not working #44
Comments
I found that it happens only when I'm running xkeysnail as another user. |
I had a similar permission issue. In my case, the problem is that when a keyboard is plugged and the device file is created in /dev/input, xkeysnail tries to access the device file before the correct permission is set. My problem was solved by changing this line:
to
(So xkeysnail retries to access the device file when the permission is changed.) |
@kentacho |
@wkwkw Think we can close this issue now? |
Ping. |
I tried running xkeysnail with --watch and plugged in a keyboard, but nothing happened.
After some easy debugging, I found that at plugging in a keyboard,
add_new_devices()
is called properly and gettingevent.name
is ok, but no code afternew_device = InputDevice("/dev/input/" + event.name)
is not working.My environment is as below.
Ubuntu: 16.0.4
xkeysnail: 0.1.0
python: 3.6.4
pip: 19.0.3
Thanks.
The text was updated successfully, but these errors were encountered: