LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to assign an icon to an application? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-assign-an-icon-to-an-application-380420/)

anupamsr 11-06-2005 04:41 AM

How to assign an icon to an application? [SOLVED]
 
Hi,

I have just installed a program, and added a link from /usr/bin to it so that I can run it from everywhere. Now I am trying to create a shortcut for it.

I am using KDE 3.4.1 . I created a shortcut and assigned an icon for it:
Code:

$ cat /usr/share/applications/wolfor.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Linux DC++
GenericName=DirectConnect Client
Comment=Connect to DirectConnect hubs
Exec=dcpp
Icon=/home/rogue/temp/dcpp.png
Terminal=false
Type=Application
Categories=Application;Network;
StartupNotify=true

Now, I have added it to Kde-menu etc too. So far it is good.

But when I click on this shortcut, the icon I see in the taskbar is a big 'X' (of Xapps). I want to change it to the the icon I have. Here is the screenshot:http://home.iitk.ac.in/~anupamsr/problem.png

thunderweasel 11-06-2005 04:53 AM

Don't think you can change that, as I don't think it's really an "icon" per se, but what the system displays along with the name and info for the program. Even a lot of the programs that came with my distro only show that when launched. Not really a big deal, as all the icons for actually starting the program are right. Bit picky aren't ya? :)

anupamsr 11-06-2005 05:01 AM

But the firefox/thunderbird/other such applications which are not actually KDE applicaitons show their icons :(

Actually, one of my friend has Kubuntu, and it comes with this application (unlike mine, where I had to compile it from cvs). Their in Kubuntu, it does show the icon!
So I guess there is some setting or a file in which an application is assigned an icon (permanently!?! :) ).

Quote:

Bit picky aren't ya? :)
:p

cs-cam 11-06-2005 05:55 AM

Try putting an icon for the app in /usr/share/pixmaps. That might turn out to be the magic touch, but I don't use KDE so I'm guessing where it looks for icons...

anupamsr 11-06-2005 06:18 AM

That sir, is indeed the magic trick! As a precaution, I also renamed the wolfor.desktop to dcpp.png.

So now,
Code:

$cat /usr/share/applications/dcpp.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Linux DC++
GenericName=DirectConnect Client
Comment=Connect to DirectConnect hubs
Exec=dcpp
Icon=/usr/share/pixmaps/dcpp.png
Terminal=false
Type=Application
Categories=Application;Network;
StartupNotify=true

And thats it!
Thanks and thanks again!


All times are GMT -5. The time now is 01:44 AM.