Archiv

Artikel Tagged ‘moz-icon’

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.
Mehr…