Git Product home page Git Product logo

Comments (5)

kentacho avatar kentacho commented on August 12, 2024 3

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:

        inotify.add_watch("/dev/input", flags.CREATE)

to

        inotify.add_watch("/dev/input", flags.CREATE | flags.ATTRIB)

(So xkeysnail retries to access the device file when the permission is changed.)
Does this fix your issue as well?

from xkeysnail.

wkwkw avatar wkwkw commented on August 12, 2024

I found that it happens only when I'm running xkeysnail as another user.
The problem seems to be that the user has no permission to access /dev/input/*.

from xkeysnail.

wkwkw avatar wkwkw commented on August 12, 2024

@kentacho
Your solution worked fine for my issue. Thank you very much!

from xkeysnail.

joshgoebel avatar joshgoebel commented on August 12, 2024

@wkwkw Think we can close this issue now?

from xkeysnail.

joshgoebel avatar joshgoebel commented on August 12, 2024

Ping.

from xkeysnail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.