I wanted to associate a custom icon for my old .PSP files in XFCE, but had no clue how. Thanks to https://unix.stackexchange.com/questions/23776/how-to-change-a-file-type-icon-in-xfce-thunar, I was able to do it easily.
Firstly create a custom icon, then save it into
~/.local/share/icons/. (Alternatively, with sudo/root access try /usr/share/icons/. For example, mine was ~/.local/share/icons/pspimage.png.Then create a new mime xml in your user’s
~/.local/share/mime/packages/. For example, mine was ~/.local/share/mime/packages/pspimage.xml. (Alternatively, for system-wide, try /usr/share/mime/packages/.)Which contained:
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/octet-stream">
<comment>PaintShop Pro Image</comment>
<glob pattern="*.psp"/>
<glob pattern="*.pspimage"/>
<generic-icon name="pspimage"/>
<icon name="pspimage"/>
</mime-type>
</mime-info>
Then simply update your system: (Alternatively, as sudo/root, perform same as below in
/usr/share/mime/packages/.)cd ~/.local/share/mime && update-mime-database $PWDRefresh your Thunar view and viola.
~~
As always, good luck!
Please consider crypto tipping:




works!
ReplyDelete