Bug 473805 - KDE flatpak apps fail to start in Xorg
Summary: KDE flatpak apps fail to start in Xorg
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Qt/KDE Flatpak Runtime
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-27 12:58 UTC by vsergeev
Modified: 2023-08-28 19:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vsergeev 2023-08-27 12:58:31 UTC
STEPS TO REPRODUCE
1. start any flatpak app like ktrip of plasmatube

OBSERVED RESULT
```
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.
```
EXPECTED RESULT

App should start

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: fresh flatpak install  as to date of submitting of the issue

ADDITIONAL INFORMATION

Workaround:

start weston
start plasmatube as
flatpak run -env=QT_QPA_PLATFORM=wayland org.kde.plasmatube

close plasmatube
close weston
start plasmatube as
flatpak run org.kde.plasmatube
or
flatpak run -env=QT_QPA_PLATFORM=xcb org.kde.plasmatube
Comment 1 Albert Astals Cid 2023-08-27 21:06:23 UTC
Works for me.
Comment 2 vsergeev 2023-08-27 23:25:35 UTC
(In reply to Albert Astals Cid from comment #1)
> Works for me.

Probably I forgot to specify some environment:

DE: i3,
Sever: Xorg
Comment 3 Nate Graham 2023-08-28 19:58:09 UTC
This is most likely a distro setup issue or  local configuration issue. I would recommend that you contact your distro or their support resources for help getting it resolved. Thanks!