How do I assign an icon to a particular file extension?

Booting, installing, newbie
Post Reply
Message
Author
User avatar
papaschtroumpf
Posts: 250
Joined: Fri 17 Jun 2005, 04:23

How do I assign an icon to a particular file extension?

#1 Post by papaschtroumpf »

How do I assign an icon to a particular file extension?
In particular I want to assign a CD icon to the .iso filetype, which to my knowledge doesn't have an official mime-type.

Also I want to do thi from a script, not drag-androp magic
Mandriva LE 2005 user and puppy newbie

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

to add an icon to a mime-type, just put the icon in Choices/MIME-icons/ ... name the file after the mime-type, for example, application_pup.xpm, application_zip.xpm, image_x-xpixmap.xpm

to make a new mime-type for iso files, edit the file /usr/local/share/Choices/MIME-info/Standard ... or copy Standard to /root/Choices and edit /root/Choices/MIME-info/Standard

if you want to set a Run Action for a mime-type, put the run-action executable in /root/Choices/MIME-types

Post Reply