Skip to content

plover.dev and plover.stable will not start. Error is: Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n' #141797

@JonathanReeve

Description

@JonathanReeve

Describe the bug

A clear and concise description of what the bug is.

Launching plover from a terminal or launcher won't work, whether in an X session or a Wayland session. Launching it from a terminal gives this error:

Unexpected error: Traceback (most recent call last):
  File "/nix/store/qp2ph70y9cy7s9jn1k0vfvi6zpwqivwn-python3.6-plover-4.0.0.dev8/lib/python3.6/site-packages/plover/main.py", line 128, in main
    code = gui.main(config)
  File "/nix/store/qp2ph70y9cy7s9jn1k0vfvi6zpwqivwn-python3.6-plover-4.0.0.dev8/lib/python3.6/site-packages/plover/gui_qt/main.py", line 88, in main
    app = Application(config, use_qt_notifications)
  File "/nix/store/qp2ph70y9cy7s9jn1k0vfvi6zpwqivwn-python3.6-plover-4.0.0.dev8/lib/python3.6/site-packages/plover/gui_qt/main.py", line 28, in __init__
    from plover.gui_qt.main_window import MainWindow
  File "/nix/store/qp2ph70y9cy7s9jn1k0vfvi6zpwqivwn-python3.6-plover-4.0.0.dev8/lib/python3.6/site-packages/plover/gui_qt/main_window.py", line 13, in <module>
    from plover.oslayer import wmctrl
  File "/nix/store/qp2ph70y9cy7s9jn1k0vfvi6zpwqivwn-python3.6-plover-4.0.0.dev8/lib/python3.6/site-packages/plover/oslayer/wmctrl.py", line 34, in <module>
    wmctrl = WmCtrl()
  File "/nix/store/qp2ph70y9cy7s9jn1k0vfvi6zpwqivwn-python3.6-plover-4.0.0.dev8/lib/python3.6/site-packages/plover/oslayer/xwmctrl.py", line 9, in __init__
    self._display = display.Display()
  File "/nix/store/lh8vq3yy413k8bfnx2cigsp3wywd6i3y-python3.6-xlib-0.25/lib/python3.6/site-packages/Xlib/display.py", line 89, in __init__
    self.display = _BaseDisplay(display)
  File "/nix/store/lh8vq3yy413k8bfnx2cigsp3wywd6i3y-python3.6-xlib-0.25/lib/python3.6/site-packages/Xlib/display.py", line 71, in __init__
    protocol_display.Display.__init__(self, *args, **keys)
  File "/nix/store/lh8vq3yy413k8bfnx2cigsp3wywd6i3y-python3.6-xlib-0.25/lib/python3.6/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'No protocol specified\n'

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

fish: Job 1, 'plover' terminated by signal SIGABRT (Abort)

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install plover via nix-env -iA nixos.plover.dev or nix-env -iA nixos.plover.stable, or by adding plover.dev to your list of programs in configuration.nix.
  2. Launch plover in a terminal
  3. Notice that it doesn't launch, and instead you get the error above.

Expected behavior

I expected plover to start.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Notify maintainers

@Twey @KoviRobi

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 5.14.9-xanmod1-cacule, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5pre20211007_844dd90`
 - channels(root): `"nixos-20.09.4393.068984c00e0"`
 - channels(jon): `"home-manager, nixpkgs-21.05pre276604.8e1891d5b8d"`
 - nixpkgs: `/home/jon/.nix-defexpr/channels/nixpkgs`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
 - plover.dev
 - plover.stable
module:

Metadata

Metadata

Assignees

Labels

0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: qt/kdeObject-oriented framework for GUI creation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions