Bug 405599 - Falkon doesn't work on wayland
Summary: Falkon doesn't work on wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: Qt/KDE Flatpak Runtime
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-18 13:43 UTC by Patrick Silva
Modified: 2020-01-04 12:55 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.