LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   pimp usb sticks (http://www.linuxquestions.org/questions/linux-desktop-74/pimp-usb-sticks-785252/)

mecelec415 01-27-2010 11:54 PM

pimp usb sticks
 
1 Attachment(s)
is there anyway to put a custom icon on my usb sticks?
is it just a matter of adding the correct sized .ico file to the usb stick?
excuse my crude drawing in the cut out the usb stick shows the small icon.

assuming every1 all ready knows the windows method of adding the sized .ico file and the autorun.inf calling up the image
assuming in my case mandriva must us .ico files ? (or does linux not care for extenstions at all)
any chance of telling me the sizes of the images ?

MTK358 01-28-2010 12:29 PM

I don't know if that's possible in Linux, and Linux does not use .ico files. Instead it uses more general image formats, usually .png or .svg. Note that SVG is actually a vector vormat, while PNG (and .ico) is raster.

carbonfiber 01-28-2010 12:38 PM

This most likely depends on the actual application that is supposed to display said icon. If I'm in a terminal and manually mounting the pimped USB stick - where is the icon supposed to be displayed? What if I'm using OpenBox, or dwm? Or FVWM?

i92guboj 01-28-2010 12:40 PM

Quote:

Originally Posted by mecelec415 (Post 3843173)
is there anyway to put a custom icon on my usb sticks?

No idea.

Quote:

is it just a matter of adding the correct sized .ico file to the usb stick?
excuse my crude drawing in the cut out the usb stick shows the small icon.

assuming every1 all ready knows the windows method of adding the sized .ico file and the autorun.inf calling up the image
assuming in my case mandriva must us .ico files ? (or does linux not care for extenstions at all)
any chance of telling me the sizes of the images ?
Linux has nothing to do with this. It's your desktop environment which does that. In your case, it's KDE. Whether that functionality is available or not will depend *entirely* on whether KDE is capable of doing that or not. If KDE can't, then maybe Gnome can, or maybe XFCE can. I have no idea about all this eye candy stuff. I only posted to show you what direction should you be looking at.

About .ico files, they are just a type of image. Many Linux applications can view ico images. I have no idea if any linux desktop can use them to display icons. Traditional image formats for icons in linux are xpm, png and svg.

About extensions. Linux itself do not care about extensions, but about what we call the magic number.

http://linux.die.net/man/5/magic

Files are often recognized by their contents, and not their names. But, of course, the last word is always in the hands of the programmer. If a silly programmer will program his application in a way that it will refuse to open a jpeg file that is named as .gif then so be it. Linux can't do a thing to fix that.

JZL240I-U 01-29-2010 07:23 AM

You might use a udev rule to crate your icon and link though I have never done that myself...

linus72 01-29-2010 07:31 AM

You mean like where the icon appears on desktop when you insert usb?

Just get any grml cd and edit and tell it to use your .ico .png, .jpg, etc
see there it is inside the iso?
http://multidistro.com/icon.png

you got a grml iso?

you want I'll upload the stuff on the iso, and you can download it?
maybe 1mb or somethin?

linus72 01-29-2010 07:33 AM

heres the stuff on iso
http://multidistro.com/icon.zip


All times are GMT -5. The time now is 08:36 PM.