Fix Firefox MIME Type Icons
The Problem
In order to show the error i made some screenshots from an RSS view in Firefox.

As you can see the MIME Icon is missing.
The image source link from the source code.
moz-icon://goat?size=16&contentType=audio/mpeg
The Fix

The MIME Icon is shown after the fix. As you can see it is an audio icon.
The problem is that Firefox can’t find the MIME type icons. This Shell-Script copies the MIME icons from the Humanity Icon Theme into the .icons
folder in your home directory so Firefox can find them.
#!/bin/bash ISOURCE=/usr/share/icons/ ITHEME=Humanity for size in 16 22 24 32 48; do mkdir -p $HOME/.icons/$ITHEME/mimes/$size; for file in $ISOURCE/$ITHEME/mimes/$size/*.svg; do ln -s $file $HOME/.icons/$ITHEME/mimes/$size/`basename $file .svg`.png; done; done;
Script Author: Ilja Sekler
Create a new script file and run it in your terminal or download it and run it in your terminal.
In Deutsch:
Das Problem
Um den Fehler zu zeigen habe ich ein paar Bildschirmfotos der RSS Ansicht im Firefox gemacht.

Wie wir sehen können fehlt das MIME Icon.
Der Sourcecode für das Icon aus dem Sourcecode der RSS Ansicht.
moz-icon://goat?size=16&contentType=audio/mpeg
Der Fix

Das MIME Icon wird nach dem Fix angezeigt. Wir sehen eine Audio Icon.
Das Probem ist, dass Firefox die MIME Typ Icons nicht findet. Dieses Shell-Skript kopiert die MIME Icons des Humanity Themas in den .icons
Ordner im Heimverzeichnis, so dass Firefox die Icons finden kann.
#!/bin/bash ISOURCE=/usr/share/icons/ ITHEME=Humanity for size in 16 22 24 32 48; do mkdir -p $HOME/.icons/$ITHEME/mimes/$size; for file in $ISOURCE/$ITHEME/mimes/$size/*.svg; do ln -s $file $HOME/.icons/$ITHEME/mimes/$size/`basename $file .svg`.png; done; done;
Skript Autor: Ilja Sekler
Erstellen Sie ein neues Skript und führen es in der Konsole aus oder laden es herunter und starten es in der Konsole.