Dienstag, 6. Februar 2007

Parallel installable Firefox 2.0 RPMS for Fedora Core 6

As some of you know I really disliked that Fedora Core 6 shipped (and sticks) to Firefox 1.5. But I understand the reasons why Fedora does that, and why the firefox2 package didn't make it into Extras. But the SRPM from Gawain Lynch was quite nice and he put a lot of effort into it. So I thought: why not get into the repo business for a while and set up a small repo with it? And that's what I did. Use
rpm -ivh http://www.leemhuis.info/files/repo/fc6-thl-ff2/6/i386/thl-ff2-for-fc6-release-1-1.fc6.thl.ff2.noarch.rpm
or something similar to install the repo file and the key which was used to sign the packages. Then run
yum install firefox2
to get Firefox 2.0 installed. The package installs in parallel to the Firefox 1.5 package from Fedora Core, so all those apps from Core and Extras that were build against 1.5 should still work. Note that some of your plugins might not work with Firefox 2.0 and that it will use the same profile directory as Firefox 1.5 (that's different from Gawain's packages -- he started Firefox 2.0 with the profile manager b default, *if* you start it from the menu).

To start Firefox 2.0 simply use the launcher from the menu or start it with "firefox2" from the command line. The package sets a alias "firefox -> firefox2" via a profile.d file, so after the next log in you should be able to just start if by using "firefox".

Special feature: I put a special package into the repo that should obsolete and thus delete the firefox2 package when you update to the development tree or to Fedora 7 later when it comes out -- just make sure the repo stays enabled.

There is one bug ^w feature I don't know how to workaround -- Firefox 1.5 starts up if you click on a URL in a Gnome app in case Firefox 2.0 is not yet running and Firefox 1.5 is still configured as your default browser. That happen to me multiple times, but it did not do any harm to my profile that I got aware of -- but it could, so you have been warned!

4 Kommentare:

Anonym hat gesagt…

It doesn't seem to work for me. When I run "firefox2" I still get firefox 1.5.0.9 popping up. I've tried running from command line and the Gnome menu without luck.

I'm running x86_64, could that be it?

Anonym hat gesagt…

I had to modify locale dependent bits in /usr/bin/firefox2 to make langpacks work.

Thorsten Leemhuis hat gesagt…

> When I run "firefox2" I still get firefox 1.5.0.9 popping up

Is there maybe a firefox 1.5 still running?

>I'm running x86_64, could that be it?
No, I'm running it on x86_64, too.


> I had to modify locale dependent bits in /usr/bin/firefox2 to make langpacks work.

What did you do exactly? That's seems to be a bug in the firefox package in rawhide, too, and shoud be fixed there, too.

Anonym hat gesagt…

> What did you do exactly? That's seems to be a bug in the firefox package in rawhide, too, and shoud be fixed there, too.

--- firefox2.orig 2007-01-28 14:08:49.000000000 +0200
+++ firefox2 2007-02-08 15:31:35.000000000 +0200
@@ -128,8 +128,11 @@

# check system locale
MOZARGS=
+SHORTMOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*||g"`
+[ -f $MOZILLA_FIVE_HOME/extensions/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org/chrome/$SHORTMOZLOCALE.jar ] && MOZARGS="-UILocale $SHORTMOZLOCALE"
+
MOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*|-\1|g"`
-[ -f $MOZILLA_FIVE_HOME/chrome/$MOZLOCALE.jar ] && MOZARGS="-UILocale $MOZLOCALE"
+[ -f $MOZILLA_FIVE_HOME/extensions/langpack-${MOZLOCALE}@firefox.mozilla.org/chrome/$MOZLOCALE.jar ] && MOZARGS="-UILocale $MOZLOCALE"


# if there's no command line argument and there's not a running

(the path to the langpacks were wrong, if the diff isn't readable)