LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2005, 04:41 AM   #1
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 370

Rep: Reputation: 30
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

Last edited by anupamsr; 11-06-2005 at 06:19 AM.
 
Old 11-06-2005, 04:53 AM   #2
thunderweasel
Member
 
Registered: Mar 2005
Distribution: Mandriva 2006 Free
Posts: 141

Rep: Reputation: 15
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?
 
Old 11-06-2005, 05:01 AM   #3
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 370

Original Poster
Rep: Reputation: 30
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?
 
Old 11-06-2005, 05:55 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
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...
 
Old 11-06-2005, 06:18 AM   #5
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 370

Original Poster
Rep: Reputation: 30
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[gtk] - adding an application icon using glade Misel Programming 3 01-08-2011 11:35 AM
Firefox application icon Hal Linux - Software 4 05-17-2005 12:01 PM
How to make a application icon on desktop? treotan Linux - Newbie 4 07-25-2004 02:46 AM
how to add application icon in the main menu?? shasow Red Hat 2 04-11-2004 09:41 AM
adding application icon to menu Xreagan Linux - Newbie 1 09-05-2002 07:00 AM


All times are GMT -5. The time now is 07:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration