Boris Gougeon
Boris Gougeon

Reputation: 874

Where to find volume mount icon on Leopard

I want to change the default icon of a dmg, I'ld like to do like skype or dropbox which use the default image volume icon, but I don't manage to find it with the finder. Do you have any idea where I could find it?

Thanks for your answer, Boris

Upvotes: 4

Views: 1856

Answers (2)

Parag Bafna
Parag Bafna

Reputation: 22930

If you want to set custom volume icon then use below command

/*
SetFile -c icnC will change the creator of the file to icnC
*/
SetFile -c icnC /<your path>/.VolumeIcon.icns

Now create read/write dmg

/*
to set custom icon attribute
*/
SetFile -a C /Volumes/dmgName

Upvotes: 0

Boris Gougeon
Boris Gougeon

Reputation: 874

Ok I didn't find the icon in the finder but you can download the full icon set here : here

Also if you want to set the dmg icon from the cmd line :

  • cp < your file.icns > < your mounted image path >.VolumeIcon.icns (make sure your dmg is writable)

  • SetFile -a C < your mounted image path >

The second command line is used to tell the dmg to use the icon once mounted.

If you want to make an icns from any kind of image, have a look at this freeware : img2icns

Upvotes: 6

Related Questions