These are sometimes ocurring mimetype hickups combined with firefox' file picker. Your system (and so your filemanager) are set to open pdf with okular, probably preconfigured via
xdg-open, one of the many standards
Firefox as gtk app might use
gio-open instead, another standard. In earlier versions of firefox (pre-68 I think) there was an about:config setting for ui.allow_platform_file_picker, resulting in internal firefox dialog windows using your desktopmanagers filemanager.
What you can try:
- look in your local mime database, one of the two files ~/.local/share/applications/defaults.list or ~/.local/share/applications/mimeapps.list, if there is any line combinig pdf with gimp, and see if you can correct that somehow
or
- in a terminal, check the diffents between
xdg-mime query default application/pdf
and
gio mime application/pdf
If the xdg one points to okular and the gio one points to gimp, that is the culprit. So correct it with setting
gio mime application/pdf okular.desktop
update-mime-database ~/.local/share/mime
update-desktop-database ~/.local/share/applications
- Additionally (you use KDE I think) in Systemsettings there are settings for applications and filetypes, search for pdf and look if gimp is there even as second and third choice, if so delete that.
All of that is just assumed, but hopefully thats enough vocabulary to feed your internet search machine
Some hints I got from:
https://bugzilla.mozilla.org/show_bug.cgi?id=1427700https://deluge.readthedocs.io/en/latest/how-to/set-mime-type.htmlhttps://unix.stackexchange.com/questions/36380/how-to-properly-and-easy-configure-xdg-open-without-any-environment#comment512430_59088https://unix.stackexchange.com/questions/146904/set-new-default-file-manager-for-firefox-in-archlinux