pynput-keylistener #2
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "mleone607/FW_LED_System_Monitor:pynput-keylistener"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Key listener is now implemented with pynput. I resolved the issue with X-server not working when run as service under root with a few changes to run.sh and install_as_service
I believe pynput is the best option. I think it's supported on Windows. Let me know if there are any issues running it there.
Other options I considered all had show-stopping drawbacks. See this SO post for a discussion of them. Many of the commenters were looking to NOT hook the keyboard globally (i.e. they wanted to detect key presses on the command line that was running the app). We have the opposite need, and that became a discriminator for some of the options.
Here are the main ones I tried:
This branch is rebased on the temp_fan_plugin branch that the other PR was made from, so I closed it.
A couple things I discovered when investigating making the X-Server connection work as root turned out not to be needed. But I wanted to mention them in case you find them necessary.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.