tchx84 / Portfolio

A minimalist file manager for those who want to use Linux mobile devices.
GNU General Public License v3.0
93 stars 23 forks source link

"Open With" always appears despite XDG default setting #291

Closed BurnyBoi closed 1 year ago

BurnyBoi commented 1 year ago

When selecting to open a file with more than one application as an option, Portfolio is always bringing up the Open With dialog:

20230323_17h29m42s_grim

I have double checked that I have default applications set for the file types in question:

$ xdg-mime  query default audio/flac
org.gnome.Lollypop.desktop

$ xdg-mime default org.gnome.Lollypop.desktop audio/flac
$

This is on a Librem 5 using the Flathub package

tchx84 commented 1 year ago

Hey @BurnyBoi , thanks for bringing this up.

Unfortunately that's not something I can just "fix" that at the application level.

All that Portfolio is doing is accessing the OpenURI portal, therefore that dialog is not part of the application, but it's a system dialog.

I might implement a similar dialog in the future to handle "open with" and "open many" scenarios, and then I could control whether to show the dialog or not, but can't promise anything in the short term.