Bug 405599

Summary: Falkon doesn't work on wayland
Product: [Developer tools] Qt/KDE Flatpak Runtime Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate, peter.eszlari, rainer
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Patrick Silva 2019-03-18 13:43:31 UTC
SUMMARY
I have falkon and kdenlive installed via flatpak/flathub.
I can`t run such apps natively under Wayland on Gnome session when I set QT_QPA_PLATFORM=wayland-egl environment variable in ~/.pam_environment file.

STEPS TO REPRODUCE
1. set QT_QPA_PLATFORM=wayland-egl environment variable in ~/.pam_environment file
and restart Gnome Wayland session
2. install falkon or kdenlive via flatpak/flathub.
3. try to open the app installed in the previous step

OBSERVED RESULT
terminal shows errors

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Failed to create wl_display (No such file or directory)
Using Wayland-EGL
failed to initialize EGL display
qt.qpa.plugin: Could not load the Qt platform plugin "wayland-egl" in "" even though it was found.
Fatal: 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
the app opens

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
Gnome Version: 3.32
KDE Frameworks Version: 5.56
Qt Version: 5.12.2

Additional info
I can run KDE apps (kate, gwenview and ark, for example) installed from Arch repos.
Comment 1 Peter Eszlari 2019-04-11 21:21:09 UTC
For Kdenlive this couldn't work. because the flatpak didn't have the permission (fixed now):

https://github.com/flathub/org.kde.kdenlive/commit/a043148a06d67948342f983ff361582d5c04d323
Comment 2 Aleix Pol 2019-04-11 23:05:34 UTC
Does this mean that kdenlive works now on gnome+wayland?
Comment 3 Patrick Silva 2019-04-12 12:03:43 UTC
yes, I already can run flatpaked kdenlive on Gnome Wayland session.
The problem with Falkon persists.
Comment 4 Aleix Pol 2019-04-14 18:22:30 UTC
I can confirm. On Plasma Wayland it happens as well, non-flatpak falkon works fine.
Comment 5 Patrick Silva 2020-01-04 12:55:05 UTC
Falkon is not available in flathub. The nightly build from KDE flatpak repo
can be started and run natively under Wayland on Arch Linux + Gnome 3.34.2.