PDA

View Full Version : Firefox 3.5 Branding Fix for Jaunty


d2globalinc
July 28th, 2009, 10:51 PM
I noticed when installing Firefox 3.5 from the repositories in Jaunty that the branding was set to "Shiretoko".. I couldn't have that because it would just confuse our users.. It's bad enough they ask where the "E" or "Internet Explorer" icon is - and when we finally get them using Firefox and noticing it's icon, we don't need to confuse them yet again..

Soooo - I made this little HowTO to Install Firefox 3.5 from the repositories then re-brand it back to Firefox's logo's, name, etc...


- First - close all firefox windows and open a terminal window.

- Next copy and paste the following:

sudo apt-get install firefox-3.5 firefox-3.5-branding firefox-3.5-gnome-support



- After install I do another sudo command to make sure sudo is still active without having to enter a password. If it is not - then you will need to enter your sudo password again after entering this command:

sudo ls



- Finally we copy and paste the following all at once to re-brand Firefox 3.5 using the original Firefox branding information that should still be on your system (because we do not remove Firefox 3.0.x that comes with Jaunty and we leave it on the system):


#
sudo cp -v /usr/lib/firefox-3.0*/icons/* /usr/lib/firefox-3.5*/icons/
cd /usr/lib/firefox-3.5*/defaults/preferences/
sudo cp -v firefox.js_bak firefox.js
sudo cp -v firefox.js firefox.js_bak
sudo sed -i "s/pref(\"general.useragent.extra.firefox\", \"Shiretoko\//pref(\"general.useragent.extra.firefox\", \"Firefox\//g" firefox.js
cd /usr/lib/firefox-3.5*/chrome/
sudo cp browser-branding-en-US.jar_bak browser-branding-en-US.jar
sudo cp browser-branding-en-US.jar browser-branding-en-US.jar_bak
sudo cp browser-branding.jar_bak browser-branding.jar
sudo cp browser-branding.jar browser-branding.jar_bak
cd /usr/lib/firefox-3.0*/chrome/
sudo cp -p browser-branding.jar /usr/lib/firefox-3.5*/chrome/
cd /usr/lib/firefox-3.0*/chrome/icons/default/
sudo cp -p * /usr/lib/firefox-3.5*/chrome/icons/default/
sudo mkdir -p /d2tmp/ffbrandnew/
sudo chmod 755 -R /d2tmp
cd /usr/lib/firefox-3.5*/chrome/
sudo cp browser-branding-en-US.jar /d2tmp/ffbrandnew/
sudo unzip /d2tmp/ffbrandnew/browser-branding-en-US.jar -d /d2tmp/ffbrandnew/
sudo rm -f -r /d2tmp/ffbrandnew/browser-branding-en-US.jar
sudo sed -i "s/<\!ENTITY brandShortName \"Shiretoko\">/<\!ENTITY brandShortName \"Firefox\">/g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/<\!ENTITY brandFullName \"Shiretoko\">/<\!ENTITY brandFullName \"Mozilla Firefox\">/g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/<\!ENTITY vendorShortName \"mozilla.org\">/<\!ENTITY vendorShortName \"Mozilla\">/g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/<\!ENTITY releaseBaseURL \"http:\/\/www.mozilla.org\/projects\/shiretoko\/releases\/\">/ /g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/brandShortName=Shiretoko/brandShortName=Firefox/g" /d2tmp/ffbrandnew/locale/branding/brand.properties
sudo sed -i "s/brandFullName=Shiretoko/brandFullName=Mozilla Firefox/g" /d2tmp/ffbrandnew/locale/branding/brand.properties
sudo sed -i "s/vendorShortName=mozilla.org/vendorShortName=Mozilla/g" /d2tmp/ffbrandnew/locale/branding/brand.properties
cd /d2tmp/ffbrandnew/
sudo zip -r browser-branding-en-US.jar locale
sudo cp /d2tmp/ffbrandnew/browser-branding-en-US.jar /usr/lib/firefox-3.5*/chrome/
cd /usr/bin/
sudo rm -f -r /d2tmp/
sudo rm -f -r firefox
sudo ln -s firefox-3.5 firefox
sudo sed -i "s/Name=Shiretoko Web Browser/Name=Firefox 3.5 Web Browser/g" /usr/share/app-install/desktop/firefox-3.5.desktop
sudo sed -i "s/Comment=Firefox 3.5 Beta/Comment=Browse the World Wide Web/g" /usr/share/app-install/desktop/firefox-3.5.desktop
sudo sed -i "s/GenericName=Preview Browser/GenericName=Web Browser/g" /usr/share/app-install/desktop/firefox-3.5.desktop
sudo sed -i "s/Name=Shiretoko Web Browser/Name=Firefox 3.5 Web Browser/g" /usr/share/applications/firefox-3.5.desktop
sudo sed -i "s/Comment=Firefox 3.5/Comment=Browse the World Wide Web/g" /usr/share/applications/firefox-3.5.desktop
sudo sed -i "s/GenericName=Preview Browser/GenericName=Web Browser/g" /usr/share/applications/firefox-3.5.desktop
#


There we go! Everything should now be labeled Firefox instead of Shiretoko, and the original link to firefox should now point to firefox 3.5!

- Enjoy!

Shane Menshik
D2 GLOBAL INC
http://www.d2global.com

rpotter28
July 28th, 2009, 11:32 PM
Has anyone tried this?

hatemben
July 29th, 2009, 03:40 AM
tested and working fine here. Thanks

mikewhatever
July 29th, 2009, 05:09 AM
That's a lot of commands to paste just to get rid of Shiretoko. Wouldn't it make sense to put them all in a script and just run it once?

vmatherly
July 29th, 2009, 10:07 AM
Worked perfect!

pjalegria
July 29th, 2009, 03:14 PM
The icons are not from FF3.5...

ivotron
July 30th, 2009, 12:34 AM
Thank you, worked perfectly

binbash
July 30th, 2009, 02:53 AM
It works

Arup
July 30th, 2009, 03:01 AM
Works like a charm, thank you. Most important is that open with in Opera now opens pages with FF 3.51 by default.

Robbie7up
July 31st, 2009, 10:34 PM
Worked perfectly, ended a week long hunt to get Firefox 3.5 on my computer.

racmar
August 5th, 2009, 10:08 AM
Thanks! That headache was driving me crazy on sites that actually check if the user-agent is Firefox, not Shiretoko.

stillious
August 5th, 2009, 10:39 AM
Cool, won't have to put up with that crappy icon and user agent any more :guitar:

exoren22
August 5th, 2009, 01:10 PM
How can I modify this script to allow me to remove ff3.0 afterward? I only need one and if you remove 3.0 it destroys the links and everything.

bchalstrom
August 7th, 2009, 07:30 PM
The script seemed to work fine for me -- ALL except the Help menu still says "About Shiretoko". Not a big deal, but are others of you seeing this too?

racmar
August 7th, 2009, 07:50 PM
Mine says "About Mozilla Firefox". Maybe if you re-run the script? Also, I had to run it again after the 3.5.2 upgrade.

Goombie
August 7th, 2009, 09:39 PM
This fix worked fine for me. :) I did need to run it again after installing Firefox 3.5.2, though. But it's no big deal, since it takes all of 30 seconds to run.

rcayea
August 9th, 2009, 01:23 AM
Worked great for me.

naturenut
August 12th, 2009, 12:37 PM
Worked like a charm, except for one thing. I'd already removed 3.0 from my system so I don't have the icons anymore. Any way to get a copy of them? Don't want to reinstall 3.0 and jump through all the hoops to get it back to 3.5...

naturenut
August 12th, 2009, 03:18 PM
How can I modify this script to allow me to remove ff3.0 afterward? I only need one and if you remove 3.0 it destroys the links and everything.

I had installed 3.5 prior to the official release, so it copied my profile to it's setup. I uninstalled 3.0 and installed 3.5, both using Synaptic. That gave me Shiretoko as the browser that starts from Applications/Internet. Didn't like the icon and name (expected them to be corrected with the official update), so some searching brought me here and I ran the above commands to rebrand as FF. It worked great, except I still have the Shiretoko icons because I'd removed the 3.0 setup - 3.0.12 directory only contains a directory named Updates, which has an empty directory named 0 in it. Didn't lose any settings, addons or bookmarks. Hoping someone can give me some pointers on getting the right icons, but that's in another post to this thread...

tonylibby
August 13th, 2009, 05:25 AM
Thanks for sharing, It really worked for me.

drskartik
August 18th, 2009, 01:20 PM
Thanks it was of great help, did'nt realise it could be so easy and quick.
Kartik

nortexoid
September 11th, 2009, 01:53 AM
Worked for me. Someone who knows how to make scripts needs to make one so that this routine task can be carried out in a single click/command.

Thanks!

JPKnowMad
September 11th, 2009, 10:01 AM
Hey Guys,
this worked well for me. One thing, when I opened firefox afterwards it said i should upgrade to 3.5.3. How can I do that while keeping these changes? Thanks

nortexoid
September 11th, 2009, 12:58 PM
Since I've got the mozilla dailys, when I updated Firefox all the changes I made (doing things mentioned here) reverted. I'm back to Shiretoko's branding. Rubbish!

Is there a permanent fix that will survive updates?

-_- Joseph -_-
September 11th, 2009, 10:19 PM
I've had this problem for a while thanks for the update:D:D:D

,Joseph

TokyoYank
October 14th, 2009, 09:17 PM
Since I've got the mozilla dailys...Is there a permanent fix that will survive updates?Just an idea:

Since there are multiple routes to 3.5, could any gurus reading write a firefox-3.5-fixbranding package, either a) using the OP script or b) packaging required icons? ... Is there an easy way to write a script that runs only when a certain file(s) gets touched?

BTW If/when such a package should exist, then I'd be happy to write a "HowTo Upgrade to Firefox 3.5 for 8.10 and 9.04". If you google "ubuntu firefox 3.5 howto" you get a mix of hits before it was in the repos, but no concise howto for folks wanting "to add plus tab," etc.

/end $.02

nortexoid
October 15th, 2009, 03:30 AM
Try changing the general.useragent.extra.firefox in about:config by replacing 'Shiretoko' with 'Firefox'.

It's not exactly the type of rebranding you want, but it will at least make Shiretoko compatible with sites that check for user agent, e.g. Facebook. I've had no problems so far doing this.

makkirot
October 15th, 2009, 11:10 AM
Works fine !.Thanks buddy

TokyoYank
October 15th, 2009, 12:47 PM
Try changing the general.useragent.extra.firefox in about:config by replacing 'Shiretoko' with 'Firefox'.
Mine said Shiretoko/3.5.3 (which I changed to Firefox/3.5.3)

..does that mean this value gets reset upon 3.5 updates, or just the version number?

So far so good, will try to remember to check this next update

nortexoid
October 15th, 2009, 02:04 PM
Mine said Shiretoko/3.5.3 (which I changed to Firefox/3.5.3)

..does that mean this value gets reset upon 3.5 updates, or just the version number?

So far so good, will try to remember to check this next update

No, it doesn't get reset, but as you predict, the version number gets updated. The whole value of general.useragent.extra.firefox remains as 'Firefox/[version]', e.g. 'Firefox/3.5.4pre'.

Perhaps if you change the whole value, including the version number tailing the '/' (slash), the whole string might not change at all. I haven't tried this. (Some people remove the 'pre'.)

GadeTerbob
October 15th, 2009, 04:00 PM
Thanks for the how to upgrade Firefox info.

Renée Jade
October 19th, 2009, 04:36 AM
This worked for making facebook get a grip. Thanks! However I already removed firefox 3 a while ago. Any idea how to get my icons back now?

565Customz
October 19th, 2009, 10:10 PM
worked beautifully! i didnt even lose any of my saved passwords or bookmarks...nice!

TokyoYank
October 19th, 2009, 10:38 PM
This worked for making facebook get a grip. Thanks! However I already removed firefox 3 a while ago. Any idea how to get my icons back now?
No simple way to reinstall just the icons has been mentioned. I think most folks are content to simply reinstall firefox-3.0 ... The packages are separate as far as I can tell

Renée Jade
October 20th, 2009, 04:38 AM
I managed to get the GNOME menu to use a firefox logo as the button simply by hunting down the icons and replacing the images with firefox images. I still get the little globe on the task bar and window switcher though, I hunted for that little globe everywhere so I could replace it but I can't find it :(.

dserodio
February 8th, 2010, 09:50 AM
Thanks for the info, but shouldn't the firefox-3.5-branding package take care of this? Shouldn't we file a bug on this package for failing to properly "brand" Firefox?