question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xauth warning and not registering keys on Linux

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bopprehcommented, Nov 12, 2016

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.

0reactions
miblicommented, Nov 12, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found