Add support for the Dynamic Launcher portal#3948
Add support for the Dynamic Launcher portal#3948mirkobrombin merged 1 commit intobottlesdevs:mainfrom
Conversation
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? |
|
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. |
|
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 😅 |
|
Oh 👀 |
d3c68d6 to
da21f33
Compare
|
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
da21f33 to
d4b498c
Compare
|
Thanks for review @Borgvall and @mirkobrombin, I've adjusted the MR accordingly, and finished the remaining tasks 😄 |
The portal API does allow such functionality, however I have not implemented it yet. Perhaps this could be implemented in a follow up MR? |
|
The changed commit has resolved all my comments. Thanks @ignapk. From my point of view, this is ready to be merged. |
|
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. |


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 Entryoption 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:
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 reasonsThis 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#1674Modern 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 laterFixes #1366
Type of change
How Has This Been Tested?