You are not logged in.

#1 2023-12-23 18:15:53

V3
Member
Registered: 2023-08-24
Posts: 6

[SOLVED] Firefox intercepts the default MIME-types

Hi,

xdg-mime query filetype test.js
> application/javascript

xdg-mime query filetype test.ts
> application/javascript

xdg-mime query filetype test.json
> application/json

xdg-mime query filetype test.jpg
> image/jpeg
// ~/.config/mimeapps.list

[Default Applications]
image/jpeg=phototonic.desktop
application/javascript=helix.desktop
application/json=helix.desktop

Xdg-open opens these three types in Firefox. How to prevent this behavior?

Last edited by V3 (2023-12-25 08:33:04)

Offline

#2 2023-12-24 20:48:42

ponyrider
Member
Registered: 2014-11-18
Posts: 112

Re: [SOLVED] Firefox intercepts the default MIME-types

Check the section 4.4 of the wiki

Applications are free to ignore or only partially implement the XDG standard. Check for usage of deprecated files such as ~/.local/share/applications/mimeapps.list and ~/.local/share/applications/defaults.list. If you are attempting to open the file from another application (e.g. a web browser or file manager) check if that application has its own method of selecting default applications.

Offline

Board footer

Powered by FluxBB