freeciv21 icon indicating copy to clipboard operation
freeciv21 copied to clipboard

Running freeciv on ChromeOS through dev environment w/flatpak -- QT_QPA_PLATFORM

Open 3dsf opened this issue 6 months ago • 4 comments

Describe the bug An error is generated when running freeciv through flatpak on cmdline, and populated icons in the launcher do not work. flatpak run net.longturn.freeciv21

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, xcb.

To Reproduce Steps to reproduce the behavior:

  1. Install flatpak in the dev environment
  2. Add flathub repo
  3. Shutdown linux dev enviroment
  4. Open linux dev enviroment
  5. Install freeciv flatpak

Expected behavior Launcher icons to work and for it to work from cmd line

Platform and version (please complete the following information):

  • OS: ChromeOS dev environment

Additional context This cmdline and a reboot should fix it locally flatpak override --user --env=QT_QPA_PLATFORM=wayland net.longturn.freeciv21

3dsf avatar Jan 04 '24 08:01 3dsf