doc:appunti:linux:tux:mimetype
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:tux:mimetype [2020/09/23 21:29] – [Application associated to a MIME Type] niccolo | doc:appunti:linux:tux:mimetype [2020/09/23 21:43] (current) – [MIME Type application/x-image-playlist] niccolo | ||
---|---|---|---|
Line 56: | Line 56: | ||
<code xml> | <code xml> | ||
+ | <!-- WARNING! This file is not optimal, see below for the final version. --> | ||
<?xml version=" | <?xml version=" | ||
< | < | ||
Line 167: | Line 168: | ||
Once clicked the link, Firefox displays the //Open with...// dialog box suggesting to use **VLC** to open the **MPEG Audio URL**. | Once clicked the link, Firefox displays the //Open with...// dialog box suggesting to use **VLC** to open the **MPEG Audio URL**. | ||
- | Prepare | + | Now we prepare |
< | < | ||
Line 190: | Line 191: | ||
</ | </ | ||
- | then we run the **update-desktop-database** (which will update the **mimeinfo.cache** file): | + | then we run the **update-desktop-database** |
< | < | ||
update-desktop-database / | update-desktop-database / | ||
+ | </ | ||
+ | |||
+ | Something good has happened; the system knows how to handle that MIME type: | ||
+ | |||
+ | < | ||
+ | xdg-mime query default application/ | ||
+ | photo-reframe.desktop | ||
</ | </ | ||
After this step, Firefox suggests to use **Photo-Reframe (default)** to handle the link, you can check the box **Do this automatically for files like this from now on** and the associated application will be launched automatically whenever you will click over a link like this. Only after this association, | After this step, Firefox suggests to use **Photo-Reframe (default)** to handle the link, you can check the box **Do this automatically for files like this from now on** and the associated application will be launched automatically whenever you will click over a link like this. Only after this association, | ||
+ | **NOTICE**: You may need to use **Shift-Click** to force the reloading of the link, otherwise Firefox may get the object from the cache, where the MIME type is cached too. | ||
+ | ===== Useless recipes ===== | ||
+ | |||
+ | There are many recipes to add a new MIME Type and an associated applications, | ||
+ | |||
+ | * / | ||
+ | * / | ||
+ | * $HOME/ | ||
+ | * $HOME/ | ||
===== Opening local files from an HTTP page ===== | ===== Opening local files from an HTTP page ===== |
doc/appunti/linux/tux/mimetype.1600889348.txt.gz · Last modified: 2020/09/23 21:29 by niccolo