Bug 463047

Summary: Flatpak version doesn't behave correctly on GNOME Wayland
Product: [Applications] kdenlive Reporter: Eduardo Medina <edu.rm.85>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED UPSTREAM    
Severity: minor CC: fritzibaby, julius.kuenzel
Priority: NOR Keywords: triaged
Version First Reported In: 22.12.0   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Kdenlive Flatpak behaving bad on GNOME Wayland
Modifying Flatseal to get Kdenlive Flatpak working correctly on GNOME Wayland part 1
Modifying Flatseal to get Kdenlive Flatpak working correctly on GNOME Wayland part 2
Official Flatpak package running on Wayland from GNOME 47
Kdenlive was always took from Flathub

Description Eduardo Medina 2022-12-14 19:30:40 UTC
Created attachment 154586 [details]
Kdenlive Flatpak behaving bad on GNOME Wayland

SUMMARY
Hi, I use the Flatpak version of Kdenlive since a long ago and I see that it behaves bad on GNOME's Wayland session. If you activate the Activities (Actividades in my computer) section, you can see that the previsualizations of the current clip and the project turn transparent.

Another bug I found is if you open the app and you put the mouse pointer on the opening banner, you can see that the mouse pointer turns big, breaking the consistence with the interface.

And finally, you can see the the menu doesn't behave correctly because submenus are showed out of place. I see some kind of "ghost effect" when you navigate through the menu bar, but that bug wasn't captured by the video.

Sorry if the description is not good (I know that my English is horrible), but I don't if this is one bug or several bugs. I will stay here to follow the instructions you give me.
Comment 1 Eduardo Medina 2022-12-14 19:36:37 UTC
I forgot to say I use Fedora 37 Silverblue with GNOME 43.
Comment 2 Eduardo Medina 2023-11-17 08:36:04 UTC
Hi. Now I see that the environment variables for Flatpak are bad configured. I have to set "XDG_CURRENT_DESKTOP=kde" to "XDG_CURRENT_DESKTOP=gnome" to get the app working correctly.

Doing this I can use Kdenlive Flatpak more integrated on GNOME Wayland. Even the app boots faster.
Comment 3 Eduardo Medina 2023-11-17 08:37:54 UTC
Created attachment 163229 [details]
Modifying Flatseal to get Kdenlive Flatpak working correctly on GNOME Wayland part 1
Comment 4 Eduardo Medina 2023-11-17 08:38:23 UTC
Created attachment 163230 [details]
Modifying Flatseal to get Kdenlive Flatpak working correctly on GNOME Wayland part 2
Comment 5 emohr 2025-02-18 14:25:40 UTC
Thank you for reporting and investigating.

Please use the official Kdenlive flatpak from flathub https://flathub.org/apps/org.kde.kdenlive and try again.
Comment 6 Eduardo Medina 2025-02-18 19:00:43 UTC
Created attachment 178538 [details]
Official Flatpak package running on Wayland from GNOME 47

Today Kdenlive behaves correctly on GNOME Wayland, but it didn't show the GNOME title bar.
Comment 7 emohr 2025-02-19 17:10:55 UTC
Thank you for the feedback. That means the official Kdenlive flatpak from flathub works fine. 

I close this bug with "resolved upstream" as the flatpak you have used is not an official flatpak and has to be corrected by the owner (Fedora?)
Comment 8 Eduardo Medina 2025-02-19 17:52:08 UTC
Created attachment 178601 [details]
Kdenlive was always took from Flathub

What are you talking about? I always use the official version from Flathub.
Comment 9 Julius Künzel 2025-02-20 09:41:10 UTC
The context is that Fedora packages it's own Flatpaks and prioritizes them higher than Flathub. See https://gitlab.com/fedora/sigs/flatpak/fedora-flatpaks#39 and https://pagure.io/fedora-workstation/issue/463

However the bug you describe seems to be indeed on our side. XDG_CURRENT_DESKTOP=kde has been added several years ago, see https://github.com/flathub/org.kde.kdenlive/issues/53 I am pretty sure that we should just remove it now from the Flatpak manifest.

I will keep this report closed as I opened https://github.com/flathub/org.kde.kdenlive/pull/514 In a few minutes a test package should show up in this pull request. It would be nice if you could test it.