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/17 12:37] – [Web References] 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 159: | Line 160: | ||
</ | </ | ||
- | We check also the behaviour of the Firefox browser, we prepare an HTML file containing this (notice the **anchor** tag uses the **type** attribute to declare the proper MIME type): | + | We check also the behaviour of the **Firefox** browser, we prepare an HTML file containing this (notice the **anchor** tag uses the **type** attribute to declare the proper MIME type): |
<code xml> | <code xml> | ||
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: | ||
</ | </ | ||
- | FIXME To be continued... | + | then we run the **update-desktop-database** over that directory (it will update the **mimeinfo.cache** file in the same directory): |
+ | |||
+ | < | ||
+ | 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, | ||
+ | |||
+ | **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/.mozilla/ | ||
===== Opening local files from an HTTP page ===== | ===== Opening local files from an HTTP page ===== | ||
doc/appunti/linux/tux/mimetype.txt · Last modified: 2020/09/23 21:43 by niccolo