Bug 488193 - Cannot create or launch dynamic launchers created with Flatpak portal
Summary: Cannot create or launch dynamic launchers created with Flatpak portal
Status: REPORTED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.11
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-08 07:58 UTC by Satvik Patwardhan
Modified: 2024-06-08 07:58 UTC (History)
3 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 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