Topic: How do I give Firefox an icon in the toolbar...

Right now, every other application has an icon specific to that application but Firefox has an icon that looks like a page of text with and "x" on it - something generic, in other words.

Re: How do I give Firefox an icon in the toolbar...

I think this has something to do with Firefox's icon being a symbolic link as opposed to being an actual icon in /usr/share/pixmaps. You could try editing /usr/share/applications/firefox.desktop and putting in the full path to the icon.

1. Open the file for editing with the following terminal command:

gksudo gedit /usr/share/applications/firefox.desktop

2. Change line 68 from...

Icon=firefox-3.0

to...

Icon=/usr/lib/firefox-3.0.4/icons/mozicon128.png

3. Remove and re-add the launchbar icon for the changes to take affect.

Hope this helps smile

Re: How do I give Firefox an icon in the toolbar...

That did it, thanks.

Re: How do I give Firefox an icon in the toolbar...

This would make a nice how-to in the tips, tricks and scripts section. It's something that many people might come looking for.

A Creative Commoner | My images at Google+ | A Waldorf Review

Silence is sometimes the best answer - Dalai Lama.

Re: How do I give Firefox an icon in the toolbar...

omns wrote:

This would make a nice how-to in the tips, tricks and scripts section. It's something that many people might come looking for.

Indeed it is.. thanks omns wink

Re: How do I give Firefox an icon in the toolbar...

Thanks it helped me.

-Bob- 
Ubuntu User #24005, Linux User #480025
identi.ca  friendfeed  facebook

Re: How do I give Firefox an icon in the toolbar...

corenominal wrote:
gksudo gedit /usr/share/applications/firefox.desktop

2. Change line 68 from...

Icon=firefox-3.0

to...

Icon=/usr/lib/firefox-3.0.4/icons/mozicon128.png

3. Remove and re-add the launchbar icon for the changes to take affect.

There may be a problem with that.  My CrunchBang 8.10.01 distro included firefox-3.0.3 (not 3.0.4).  I also noticed that the installed Firefox 3.0.3 had Help->Check for Updates disabled.

Since Firefox versions will change, why not:

sudo cp /usr/lib/firefox/3.x.x/icons/mozicon128.png /usr/share/firefox/mozicon128.png

Then make the corresponding icon entry in /usr/share/applications/firefox.desktop.  Firefox's icon is unlikely to change so this is a more reliable image file location for configuration files.

Last edited by NewCityVegas (2008-12-13 10:09:33)

=========== You are the dreamer, and the dream ===========

gooplusplus.com (goo++) --- compact multi search + 77 internet radio stations

Re: How do I give Firefox an icon in the toolbar...

The distro included firefox 3.0.3 as that was what was available at that time. Since the release, firefox has updated and it is always advisable for users to regularly update their system.

corenominal has written a simple script to overcome this problem.

@NewCityVegas - please can you use italics for emphasis on the forums and not red as it makes reading your posts difficult. Thanks smile

Politeness, Respect, Trust, Humility - forum etiquette I abide by!
identi.ca | My blog

Re: How do I give Firefox an icon in the toolbar...

Thanks, this post helped me to return Firefox icon.

Re: How do I give Firefox an icon in the toolbar...

superb stuff, ive kinda got to used to not having any icons but now i can add a few that the GF can click on!
simplez!

Crunchy Fox - making it up as i go along!
----------------------------------------------------
#! on a 2g, 901 (eeepc), server & D800 dell

Re: How do I give Firefox an icon in the toolbar...

Thanks! This worked for me too.

I changed the icon path to /usr/share/icons/firefox.png though.

If linking to the .../firefox-3.0.4/... folder, would it break when it updates? Though maybe firefox.desktop will get overwritten when it update anyway.

Thanks

B