-
Notifications
You must be signed in to change notification settings - Fork 278
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
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'Authorization required, but no authorization protocol specified #1586
Comments
Are you on x or wayland? And which desktop environment are you using? Given the error and the fact that |
I am on wayland, and I'm using GNOME. |
You're best off switching to x until Plover supports wayland. |
Alright, and thanks for your help. |
This will need fixing eventually as most all distros are slowly moving towards wayland as default. |
Hmm... yesterday I tested out Plover on Gnome on Xorg and ran into the same error. A workaround is running Here's what I've actually done:
I don't think this issue is caused by Wayland. |
I'm on Fedora 39 and the |
I'm running into this issue under X11 (GNOME, NixOS). My issue I think is related to this issue: https://bugs.launchpad.net/ubuntu/+source/python-xlib/+bug/1885304 Running |
Bug Description
I just installed plover 4.0.0, and whenever I start it up, it gives this error:
Unexpected error: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/plover/scripts/main.py", line 131, in main code = gui.main(config, controller) File "/usr/lib/python3.10/site-packages/plover/gui_qt/main.py", line 129, in main app = Application(config, controller, use_qt_notifications) File "/usr/lib/python3.10/site-packages/plover/gui_qt/main.py", line 37, in __init__ from plover.gui_qt.main_window import MainWindow File "/usr/lib/python3.10/site-packages/plover/gui_qt/main_window.py", line 15, in <module> from plover.oslayer import wmctrl File "/usr/lib/python3.10/site-packages/plover/oslayer/linux/wmctrl.py", line 4, in <module> _wmctrl = WmCtrl() File "/usr/lib/python3.10/site-packages/plover/oslayer/linux/wmctrl_x11.py", line 9, in __init__ self._display = display.Display() File "/usr/lib/python3.10/site-packages/Xlib/display.py", line 89, in __init__ self.display = _BaseDisplay(display) File "/usr/lib/python3.10/site-packages/Xlib/display.py", line 71, in __init__ protocol_display.Display.__init__(self, *args, **keys) File "/usr/lib/python3.10/site-packages/Xlib/protocol/display.py", line 166, in __init__ raise error.DisplayConnectionError(self.display_name, r.reason) Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'Authorization required, but no authorization protocol specified\n'
To Reproduce
Steps to reproduce the behaviour:
plover
into the command lineThis happens every time I start up plover.
Expected behavior
Plover should start
Operating system
Hardware
There are no external keyboards connected, this is just my laptop.
Other Notes
This seems like a similar issue to #1137, however after I tried the solutions there plover still throws an error.
One person mentioned deleting ~/.Xauthority, however this does not exist on my computer.
As mentioned in #1137, when I ran
python -c 'from Xlib.display import Display; Display()'
the output was:Thanks in advance for the help, and I'm happy to give more information if necessary.
The text was updated successfully, but these errors were encountered: