I want to change the icon image of the executable files from the command line. I'm using KDE.
-
This might prove to be DE-specific. What's your desktop?alex– alex2011-02-15 06:00:43 +00:00Commented Feb 15, 2011 at 6:00
-
i am using KDE.pratap– pratap2011-02-15 06:18:05 +00:00Commented Feb 15, 2011 at 6:18
-
I do not believe "executables" have icons, but I could be wrong. Generally this is faked with various .ini files.Kent Fredric– Kent Fredric2011-02-15 06:45:37 +00:00Commented Feb 15, 2011 at 6:45
-
What version of KDE? The answer may be different for KDE 3 and 4.Gilles 'SO- stop being evil'– Gilles 'SO- stop being evil'2011-02-15 08:33:14 +00:00Commented Feb 15, 2011 at 8:33
Add a comment
|
1 Answer
In KDE4 you have to create file ~/.local/share/mime/packages/application-x-executable.xml with such content:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-executable">
<comment>executable</comment>
<icon name="application-x-executable"/>
<glob-deleteall/>
</mime-type>
</mime-info>
Then you can change the icon name value to something built-in like "emblem-favorite" or specify the full path: "/home/my_user/my_ico/my_exec.png". After saving the file, run update-mime-database ~/.local/share/mime/. The changes will apply almost immidiately.