torproject / torbrowser-launcher

Securely and easily download, verify, install, and launch Tor Browser in Linux. This repository is a mirror of https://gitlab.torproject.org/tpo/applications/torbrowser-launcher
MIT License
774 stars 180 forks source link

flatpak run com.github.micahflee.torbrowser-launcher Error #691

Open Louiskoo211 opened 1 year ago

Louiskoo211 commented 1 year ago

Tor Browser Launcher By Micah Lee, licensed under MIT version 0.3.6 https://github.com/micahflee/torbrowser-launcher qt.qpa.xcb: could not connect to display 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, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Kkordik commented 10 months ago

The same problem, running on Chrome OS

Kkordik commented 10 months ago

Have you found any solution ?

StudentSerai1181201811 commented 2 months ago

After a while of searching, I finally understood the reason and how to fix it

As detailed from the error message, it spits out that xcb couldn't be loaded for whatever reason XCB is a library implementing the client-side of the X11 Basically meaning, you can't launch it because it can't connect to your X server for some reason

As it details:

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

This means that we can use plugins aside from xcb which would be eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, or wayland-xcomposite-glx

You might need to play around with it but I noticed that offscreen and wayland work well for me

So to change this, write flatpak override --user --env=QT_QPA_PLATFORM=xcb org.torproject.torbrowser-launcher into your terminal where you change xcb with whatever other plugin you'll use instead like offscreen or wayland