You are not logged in.
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.desktopXdg-open opens these three types in Firefox. How to prevent this behavior?
Last edited by V3 (2023-12-25 08:33:04)
Offline
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