-   Linux - Newbie (
-   -   Change the image of an executable file from commandline. (

udaypratapyati 02-15-2011 12:12 AM

Change the image of an executable file from commandline.
Hi all,

I want to change the icon image of the executable files from command line. Can any one help me in this regard.

Thanks in advance.


micxz 02-15-2011 12:35 AM

What app sets your icon in the first place? Would it be your desktop environment kde maybe. To answer your question, I don't know but I'm just chiming in cause I'm curious.

knudfl 02-15-2011 02:17 AM

In Linux with 'Gnome Desktop', the Desktop entry ( Icon ) is a text file,
<application>.desktop .

The most easy way of changing the "Icon" is to 'right click',
select Properties, and then click the Icon image.

In a terminal : gedit <entry>(.desktop) , and then edit the line : Icon=<image>

In KDE 4, the file can be a link. Probably easier to create a new Icon,
than finding a way to do the editing.

Other 'Window Managers' ( Desktops ) : the entry will most often be a hidden
text file.


RockDoctor 02-15-2011 03:18 PM

The icon info for a normally-installed file is found in the .desktop file in /usr/share/applications. Uuse your favorite cli editor (as root) to edit - just change the Icon= field to whatever you like

All times are GMT -5. The time now is 02:24 PM.