Bug 488193

Summary: Cannot create or launch dynamic launchers created with Flatpak portal
Product: [Plasma] xdg-desktop-portal-kde Reporter: Satvik Patwardhan <eyekay>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal CC: aleixpol, jgrulich, nate
Priority: NOR    
Version: 5.27.11   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Satvik Patwardhan 2024-06-08 07:58:34 UTC
SUMMARY
In Flatpak applications which can install custom desktop launchers at run time using the Dynamic Launcher portal, trying to install a launcher using the portal fails, and a notification saying 'Portal closed unexpectedly' appears. Specifically, the call to dynamic_launcher_prepare_install_finish() fails.

Launchers created in GNOME fail to launch as well, with a notification saying 'you are not authorised to execute this file.' The launcher, located at ~/.local/share/applications/name.desktop, is a symlink to ~/.local/share/xdg-desktop-portal/applications/name.desktop which is not executable by when created by the portal in GNOME. Making this file executable solves the problem.

STEPS TO REPRODUCE
1. Install https://flathub.org/apps/net.codelogistics.webapps
2. Click on add new web app and install any website

OBSERVED RESULT
The dialog to install the launcher does not appear, the launcher is not installed and a notification saying 'Portal closed unexpectedly' appears.

EXPECTED RESULT
The portal's inerface asks to install the launcher and the launcher gets installed.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Debian sid
(available in About System)
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
This problem occurs in GNOME Web as well. It does not occur on GNOME