[gentoo-user] What's the use of mozilla-launcher?

2006-11-12 Thread Alexander Skwar
Hello!

A while back, I discovered that mozilla-launcher is causing problems,
when the URL contains a , (comma); eg. 
http://www.spiegel.de/wirtschaft/0,1518,447923,00.html

In Knode/KDE, I configured, that firefox is to be used as the browser,
so that when I click on a URL, it's loaded in firefox. I did this by
modifying .kde/share/config/kdeglobals and adding/changing:

[General]
BrowserApplication=!/usr/bin/firefox

That can also somehow be done with kcontrol.

This works well - when I click on a URL, /usr/bin/firefox is run
with one parameter, which is the URL. But if the URL contains
a comma (like the example URL further up), that site isn't correctly
loaded. Instead of http://www.spiegel.de/wirtschaft/0,1518,447923,00.html
it would load http://www.spiegel.de/wirtschaft/0,1518,447923. Reason is, that 
firefox executes mozilla-launcher which will eventually run 
mozilla-xremote-client openURL($u). The problem with that is,
that openURL accepts two parameters and they are seperated with
a ,. So it sees two parameters: http://www.spiegel.de/wirtschaft/0,1518,447923 
and
00.html - 00.html is not a valid parameter, though. It should be
something like new-window.

When I use the original Firefox from mozilla.com, there's no such
problem. That is so, because the original firefox script doesn't
use openURL anymore.

I now changed the /usr/bin/firefox script so, that it doesn't
use mozilla-launcher anymore. Up to now, I can't find any problems.

What problems did I overlook? And what's actually the use of
mozilla-launcher with current firefoxes?

What would break, if mozilla-launcher is no longer used?

Cf. https://bugs.gentoo.org/show_bug.cgi?id=150404

Or should I take this thread and purpose (ie. dump mozilla-launcher
for at least firefox) to the dev list?

Thanks,

Alexander Skwar
-- 
enhance, v.:
To tamper with an image, usually to its detriment.


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] What's the use of mozilla-launcher?

2006-11-12 Thread Richard Fish

On 11/12/06, Alexander Skwar [EMAIL PROTECTED] wrote:

In Knode/KDE, I configured, that firefox is to be used as the browser,
so that when I click on a URL, it's loaded in firefox. I did this by
modifying .kde/share/config/kdeglobals and adding/changing:

[General]
BrowserApplication=!/usr/bin/firefox


You could also set this to /usr/lib/mozilla-firefox/firefox to bypass
mozilla-launcher.


I now changed the /usr/bin/firefox script so, that it doesn't
use mozilla-launcher anymore. Up to now, I can't find any problems.

What problems did I overlook? And what's actually the use of
mozilla-launcher with current firefoxes?

What would break, if mozilla-launcher is no longer used?


Nothing that I can tell

It looks to me like the main purpose of Gentoo's mozilla-launcher was
to transparently support both firefox and firefox-bin (or mozilla and
mozilla-bin, or thunderbid and thunderbird-bin, etc), and to make sure
that new urls re-used an existing instance.  Current firefox versions
seem to support this internally, and you end up with firefox or
firefox-bin installed in /usr/bin depending upon which one you
install.  I don't see any reason why /usr/bin/firefox can't exec
/usr/lib/mozilla-firefox/firefox and /usr/bin/firefox-bin can't exec
/opt/firefox/firefox.


Cf. https://bugs.gentoo.org/show_bug.cgi?id=150404


As you have probably already seen, I added a small patch to the bug,
just in case the Gentoo devs want to keep it around.


Or should I take this thread and purpose (ie. dump mozilla-launcher
for at least firefox) to the dev list?


Yeah, -dev would be the appropriate place to bring up dumping mozilla-launcher.

-Richard
--
gentoo-user@gentoo.org mailing list