Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25737 - MozillaFirebird wrapper script does not work with -remote parameters
Summary: MozillaFirebird wrapper script does not work with -remote parameters
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-01 19:20 UTC by Marius Mauch (RETIRED)
Modified: 2004-03-22 07:34 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Mauch (RETIRED) gentoo-dev 2003-08-01 19:20:02 UTC
The wrapper script for mozilla-firebird checks for running instances of
MozillaFirebird-bin and wraps the given parameter in a openURL call if it finds
one. This does not work well when a option is given as parameter (xchat does
this for example).
Editing the if-statement in the wrapper script to
     if [ -z "`/bin/ps x | /bin/grep \"[0-9]
${FIREBIRD_PATH}/MozillaFirebird-bin\"`" -o "${1:0:1}" == "-" ]; then

fixes the problem.
Comment 1 Neil Watson 2003-09-22 05:56:06 UTC
The command:
Mozilla-Firebird -remote "openurl(http://www.gentoo.org, new-tab"
Does work with Firebird, but not with the Portage install.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-02-23 17:43:05 UTC
To whoever wrote the new script: Please fix it, it's not usable right now.
Comment 3 Brad Laue (RETIRED) gentoo-dev 2004-02-24 07:58:52 UTC
New window/tab functionality still exists, just in a different form, it's not a huge emergency.

Nevertheless the need to preserve the launch behaviour of firefox as it is upstream is obvious. Attaching agriffis to this bug as he contributed it.
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2004-02-25 13:54:56 UTC
Please try my working version at
http://dev.gentoo.org/~agriffis/firefox

I believe it solves this problem.  If it works for you, then I'll update the version in mozilla-firefox/files
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-02-25 14:04:03 UTC
genone, I don't actually understand what you initially reported in this bug.  Is that problem fixed yet?  If not, could you explain more thoroughly, I'd be happy to fix it.  The script is very different since 2003-08-01

comment #4 was directed to Neil's comment #1.  I think we're talking about two different bugs in this report...
Comment 6 Aron Griffis (RETIRED) gentoo-dev 2004-02-25 20:13:39 UTC
okay, most of the stuff reported in this bug is old, and the new script fixes the things reported.  If there are still bugs, please open a new bug to keep from muddying the water.  Thanks.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2004-02-26 04:51:57 UTC
Thanks Aron, the new script works (sorry for the harsh words, but if you can't open websites from your MUA anymore it's really frustrating)
Comment 8 Prieto 2004-03-16 19:12:51 UTC
It works, but always returns exit status 2:

$ firefox -remote 'ping()';echo $?
2
$ /usr/lib/MozillaFirefox/firefox-bin -remote 'ping()';echo $?
0