xauth warning and not registering keys on Linux
See original GitHub issueI’m running my program with sudo
Initailly I’ve gotten such result:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.Xauthority'
then after creating empty .Xauthority file for root
Xlib.xauth: warning, no xauthority details available
Callbacks I’ve added arent executed when I press the keys. Clearly some description of the issue is missing in the readme.
And here’s how I’m using the llibrary: https://github.com/mibli/i3-pyswitch/blob/feature/daemon/src/i3switch/input.py
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
What does "Warning: untrusted X11 forwarding setup failed ...
Warning : untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding....
Read more >SSH -X "Warning: untrusted X11 forwarding setup failed: xauth ...
I already installed xQuartz on OSX, xauth on ubuntu, and I believe I've have all the correct options set in ssh_config files. I...
Read more >xauth not creating .Xauthority file - linux - Super User
When I ssh'd in, it moaned about "Server refused our key", but I could log in using password. Once logged in, I could...
Read more >"Warning: untrusted X11 forwarding setup failed" on nested ssh
The untrusted X11 forwarding works by the ssh client connecting to the local display, and using the xauth generate $DISPLAY . untrusted command ......
Read more >Warning: untrusted X11 forwarding setup failed: xauth key ...
Solved ssh between freebsd and linux -- Warning: untrusted X11 forwarding setup failed: xauth key data not generated.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh yes, I haven’t updated the PyPI module in a while. I basically rewrote much of the backend and wanted to gather feedback here on GitHub before publishing the update. I think it’s ok now, so I’ll push the update. Thanks for the reminder.
On the logging.info I corrected myself used logging.error instead. I prefer logging over print because logging seems to work better for multithreaded applications, while print sometimes would not print anything. I used keyboard.hook() to check if it was catching anything, and found out to my suprise that the module had no “hook” method. So I uninstalled keyboard from pip and manually added submodule to my repo, and it works. So maybe there was something wrong with the module I installed from the repository.