Export desktop files and icons from flatpak

Hi

I’m trying to rewrite my app and also would like to reduce permissions to minimum. So basically for now, rw access is needed for 2 directories.

"--filesystem=xdg-data/applications:create",
"--filesystem=xdg-data/icons:create",

My app is Quick Web Apps. It’s for creating web applications. Those directories are for writing new desktop files so every desktop can see new created web apps in default Launcher. And the second one is of course for creating icons for this desktop files.

What if I remove those permission and use only xdg-data from flatpak sandbox. If i write new desktop file there, will any DE’s lanucher see those files?

Since the apps local data folder is not part of the search directory for icons and desktop files, the files wouldn’t be read by the desktop.

That being said, there is an portal for creating new desktop files, so you should use that: