About the mimetype
I have created a mimetype and I want to add an icon for it. The mimetype is for To-do lists, it matches the TODO
pattern and is of type text/todo
.
I can confirm that upon creating a file named TODO
, it shows to be of mimetype text/todo
.
Attempts to add the icon
So, I have linked a SVG file to
~/.local/share/icons/hicolor/48x48/mimetypes/text-todo.svg
hoping that such file will be used as icon for my mimetype. However, it is not.I proceed to run
sudo update-icon-caches ~/.local/share/icons/hicolor
, which runs quietly, but changes nothing.I then run
sudo gtk-update-icon-cache ~/.local/share/icons/hicolor
, but I get the message:
gtk-update-icon-cache: No theme index file.
or
gtk-update-icon-cache: The generated cache was invalid.
upon running sudo gtk-update-icon-cache -tf ~/.local/share/icons/hicolor
. This also, as you'd expect, changes nothing.
So, how do I add an icon for my mimetype in my home directory?