Skip to content

Instantly share code, notes, and snippets.

@HViktorTsoi
Last active September 25, 2024 17:33
Show Gist options
  • Save HViktorTsoi/44b41ad6f08df7787cd41921a33517b3 to your computer and use it in GitHub Desktop.
Save HViktorTsoi/44b41ad6f08df7787cd41921a33517b3 to your computer and use it in GitHub Desktop.
Solve error: "This application failed to start because no Qt platform plugin could be initialized, Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb."
# Error imformation:
# No protocol specified
# qt.qpa.xcb: could not connect to display unix:0
# 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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
# Soultion:
xhost +si:localuser:root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment