xdg-desktop-portal icon indicating copy to clipboard operation
xdg-desktop-portal copied to clipboard

Add Portal for adding data outside ~/.var

Open JakobDev opened this issue 3 years ago • 3 comments
trafficstars

Sometimes Apps needs to store Data outside it's directory in ~/.var for different reason. But Flatpak considers only the data in ~/.var as Data of the App. It would be nice, if you could add a Portal, which allows Apps to mark files or directories outside ~/.var as their data, so they also get deleted when running --delete-data.

JakobDev avatar Jun 28 '22 06:06 JakobDev

User data (e.g. documents, pictures, ...) shouldn't be deleted with --delete-data and for config/cache directories not following xdg-base-dirs we have --persist. Is there anything that I'm missing? Do you have an example?

rusty-snake avatar Jun 28 '22 16:06 rusty-snake

I'm not talking about user dater. I'm talking about program data. e.g. the new DynamicLauncher portal does not allowing creating launchers on the Desktop. If a program wants the create launchers o the Desktop, it needs to write the .desktop files on it's own. This files are not removed with --delete-data of course. The requested portal can be used to mark such files as program data. While creating launcher on the Desktop will eventually be added in the future to the DynamicLauncher portal, there will be still more edge cases where programs are forced to create data files outside it's own directory.

JakobDev avatar Jun 29 '22 07:06 JakobDev

I see.

rusty-snake avatar Jun 29 '22 15:06 rusty-snake

The Documents portal should cover this already

GeorgesStavracas avatar Dec 12 '22 19:12 GeorgesStavracas