Open travier opened 5 months ago
For flatpak ideal is using xdg-portal for opening files/folders rather than asking for permissions.
Make it clearer that entries in the document portal are permanent, a lot of people are surprised by this
So it's more about making sure the application correctly uses the answer from the portal and we don't need to have people edit permissions in the settings / using Flatseal.
The thing is digikam disables by default using system file dialogs which break the file portals.
If you go to the: Settings -> Configure digikam -> Miscellaneous -> Appearance
and check Use native file dialogs from system
or flip Use Native File Dialog=false
to true
in ~/.var/app/org.kde.digikam/config/digikamrc
then file portal support work without any further changes.
I don't know what are the reasons behind this and if those reasons are worth seriously decreasing security of flatpak sandbox.
Heh, apparently system file dialogs are disabled because something was crashing on ubuntu long time ago. The fix is rather far from ideal and cripples flatpak.
You may consider patching this behavior instead of disabling sandbox cc @Pointedstick
@cgilles can digikam reconsider enabling native file dialogs?
Ideally, Digikam would ask the user to grant it static access to specific folders via the Flatpak settings page or Flatseal.
Until that happens, we enabled static access to the entire home folder to make the application usable by default for most common use cases.
See: