Skip to content

Conversation

@ignapk
Copy link

@ignapk ignapk commented Jun 13, 2025

Description

This adds support for the xdg-desktop-portal dynamic launcher portal, that will allow to install desktop files without the need for manually giving permission with a command or Flatseal. Upon clicking the Add Desktop Entry option of a wine installed application, the portal will open a dialog where the user can see the app icon, can change the name and confirm or cancel.

Screenshots:

Screenshot From 2025-06-13 14-28-31
Screenshot From 2025-06-13 14-29-37

What's missing:
- [ ] Support for [Desktop Action Configure] group in the .desktop file, currently the portal requires exactly one group in the .desktop file for security reasons This is portal limitation, so if wanted, can be done in a follow up MR after adding support for it upstream
- [ ] Requiring xdg-desktop-portal version >= 1.20.1, otherwise doesn't work due to flatpak/xdg-desktop-portal#1674 Modern distributions should have that version already

Fixes #1366

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Unfortunately, I only managed to test installing the desktop file itself, as I get an error when trying to run apps from the desktop files on main as well:

(process:2): GLib-GIO-ERROR **: 15:52:04.166: Settings schema 'com.usebottles.bottles.Devel' is not installed

But the created desktop files are otherwise almost identical to the ones from main (bar the configure action) and show up in the app grid just fine \o/

@ignapk
Copy link
Author

ignapk commented Nov 2, 2025

Closing due to no activity and I see some tasks in the original comment. Tell me if you are still interested since the feature is a good one.

Hi, thanks for looking at it, and to @TheEvilSkeleton for rebasing! About the unmarked tasks in the original comment, how do you feel about skipping the Desktop Action configure, and not requiring xdp >= 1.20.1?

@mirkobrombin
Copy link
Member

Closing due to no activity and I see some tasks in the original comment. Tell me if you are still interested since the feature is a good one.

@mirkobrombin mirkobrombin reopened this Nov 2, 2025
@mirkobrombin
Copy link
Member

Not sure how we managed to answer to an old PR almost the same time. Anyway, re-opened.

@ignapk
Copy link
Author

ignapk commented Nov 2, 2025

Not sure how we managed to answer to an old PR almost the same time. Anyway, re-opened.

I was just getting out of an airplane, maybe some time zone shenanigans 😅

@mirkobrombin
Copy link
Member

Oh 👀

@ignapk ignapk force-pushed the dynamic-launcher-portal branch from ed44eae to d3c68d6 Compare November 2, 2025 21:37
@ignapk ignapk force-pushed the dynamic-launcher-portal branch from d3c68d6 to da21f33 Compare November 2, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Add support for Flatpaks new Dynamic Launcher portal

2 participants