Skip to content
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

Does not work on Ubuntu #32

Open
syap6999 opened this issue Oct 13, 2022 · 3 comments
Open

Does not work on Ubuntu #32

syap6999 opened this issue Oct 13, 2022 · 3 comments

Comments

@syap6999
Copy link

syap6999 commented Oct 13, 2022

Thank you so much for creating this project. We tried to implement this and we were successful in the Windows build as well as in Mac. However, it does not seem to work in Ubuntu 20.04. Not really sure why that is. Is there any additional configuration specifically for Ubuntu? The cpp part is a little outside of my expertise.

Upon tracing the code, this listener on the x11ServerKey does not seem to get called.

this.proc.stdout.on("data", data => {
      const events = this._getEventData(data);
      for (let { event, eventId } of events) {
          const stopPropagation = !!this.listener(event);
          this.proc.stdin.write(`${stopPropagation ? "1" : "0"},${eventId}\n`);
      }
});

The process child does get initialized. Just listener not listening.

Any idea how to go about this? Let me know if you need more info.

Thank you so much.

@sancarn
Copy link
Contributor

sancarn commented Oct 13, 2022

Can you check the x11 server is actually included in your npm package? If it isnt this may be because I haven't republished to npm yet...

Unfortunately I am no linux expert and have no experience, but @futpib may have an idea / be able to help...

@syap6999
Copy link
Author

syap6999 commented Oct 13, 2022

Yes, we have installed the @futpib 's npm package. x11server is there and is utilized. It's just that it won't listen. Not sure if an event was sent with every key press.

@futpib
Copy link
Contributor

futpib commented Dec 4, 2022

I believe ubuntu is on wayland by default and there is no keylogging APIs on wayland.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants