Skip to content

Add support for the Dynamic Launcher portal#3948

Merged
mirkobrombin merged 1 commit intobottlesdevs:mainfrom
ignapk:dynamic-launcher-portal
Feb 9, 2026
Merged

Add support for the Dynamic Launcher portal#3948
mirkobrombin merged 1 commit intobottlesdevs:mainfrom
ignapk:dynamic-launcher-portal

Conversation

@ignapk
Copy link
Contributor

@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
- [ ] Investigate breakage on GNOME OS, perhaps https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/261 regressed? Can be fixed later

  • Rework to delay showing the toast

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?

@ignapk
Copy link
Contributor 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
Contributor 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 2 times, most recently from d3c68d6 to da21f33 Compare November 2, 2025 21:39
@AsciiWolf
Copy link
Contributor

Looks great! Is it also possible to remove the added desktop entries?

Add support for the dynamic launcher portal, replacing the previous
manual creating of desktop files.

Closes: bottlesdevs#1366
@ignapk ignapk force-pushed the dynamic-launcher-portal branch from da21f33 to d4b498c Compare February 7, 2026 02:07
@ignapk ignapk marked this pull request as ready for review February 7, 2026 02:14
@ignapk
Copy link
Contributor Author

ignapk commented Feb 7, 2026

Thanks for review @Borgvall and @mirkobrombin, I've adjusted the MR accordingly, and finished the remaining tasks 😄

@ignapk
Copy link
Contributor Author

ignapk commented Feb 7, 2026

Looks great! Is it also possible to remove the added desktop entries?

The portal API does allow such functionality, however I have not implemented it yet. Perhaps this could be implemented in a follow up MR?

@Borgvall
Copy link

Borgvall commented Feb 7, 2026

The changed commit has resolved all my comments. Thanks @ignapk.

From my point of view, this is ready to be merged.

@mirkobrombin
Copy link
Member

Working fine here, thanks for the contribution!

image image

@mirkobrombin mirkobrombin merged commit fd81efc into bottlesdevs:main Feb 9, 2026
1 check passed
@Simon-Spettmann
Copy link

This doesn't work in some cases, see #4402. I am unfamiliar with the code base, but I can provide more information if that helps someone to figure out what the problem is.

@ignapk
Copy link
Contributor Author

ignapk commented Feb 19, 2026

This doesn't work in some cases, see #4402. I am unfamiliar with the code base, but I can provide more information if that helps someone to figure out what the problem is.

Thanks for letting us know, let's keep discussing it in #4402 :)

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

5 participants