TL;DR: firefox should do exactly the same as `xdg-mime query default`
----
I don’t really care how GNOME does things, and I don’t care about GIO.
If
$ xdg-mime query default application/pdf
returns
okularApplication_pdf.desktop
Then I consider my system appropriately configured to open pdf files with Okular, and firefox not respecting this is a bug.
----
To help debug this:
The above query worked like displayed even while my ~/.local/share/applications/mimeapps.list and ~/.config/mimeapps.list contained no entry for application/pdf
Which probably means that something in the XDG spec other than mimeapps.list defines the order of default applications.
Firefox however opened PDFs with Inkscape.
Manually adding this line to one of the mimeapps.list files:
TL;DR: firefox should do exactly the same as `xdg-mime query default`
----
I don’t really care how GNOME does things, and I don’t care about GIO.
If
$ xdg-mime query default application/pdf
returns
okularAppli cation_ pdf.desktop
Then I consider my system appropriately configured to open pdf files with Okular, and firefox not respecting this is a bug.
----
To help debug this:
The above query worked like displayed even while my ~/.local/ share/applicati ons/mimeapps. list and ~/.config/ mimeapps. list contained no entry for application/pdf
Which probably means that something in the XDG spec other than mimeapps.list defines the order of default applications.
Firefox however opened PDFs with Inkscape.
Manually adding this line to one of the mimeapps.list files:
application /pdf=okularAppl ication_ pdf.desktop;
…made firefox open PDFs with Okular