Closed Bug 249072 Opened 21 years ago Closed 21 years ago

firefox does not open the url from the commandline if firefox is already running. brings up profile manager instead.

Categories

(Toolkit :: Startup and Profile System, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 177996

People

(Reporter: aeyakovenko, Assigned: benjamin)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1 Firefox does not open the url from the commandline if firefox is already running. brings up profile manager instead Reproducible: Always Steps to Reproduce: 1. run firefox. 2. run firefox www.google.com 3. Actual Results: profile manager came up. Expected Results: open up www.google.com in a new window. here is a patch. i just copied that part from the mozilla script. *** firefox.orginal 2004-06-29 10:23:57.000000000 -0700 --- /usr2/anatolyy/programs/firefox/firefox 2004-06-29 10:23:46.000000000 -0700 *************** *** 141,146 **** --- 141,176 ---- fi # End of section that checks for currently running instance. - jtg + USE_EXIST=0 + opt="$1" + case "$opt" in + -mail) + open_mail ${1+"$@"} + ;; + -compose) + open_compose ${1+"$@"} + ;; + -*) ;; + *) USE_EXIST=1 ;; + esac + + if [ "${USE_EXIST}" -eq "1" ] && [ "${ALREADY_RUNNING}" -eq "1" ]; then + # check to make sure that the command contains at least a :/ in it. + echo $opt | grep -e ':/' 2>/dev/null > /dev/null + RETURN_VAL=$? + if [ "$RETURN_VAL" -eq "1" ]; then + # if it doesn't begin with a '/' and it exists when the pwd is + # prepended to it then append the full path + echo $opt | grep -e '^/' 2>/dev/null > /dev/null + if [ "${RETURN_VAL}" -ne "0" ] && [ -e `pwd`/$opt ]; then + opt="`pwd`/$opt" + fi + exec $MOZ_CLIENT_PROGRAM "openurl($opt)" 2>/dev/null >/dev/null + fi + # just pass it off if it looks like a url + exec $MOZ_CLIENT_PROGRAM "openurl($opt,new-window)" 2>/dev/null >/dev/null + fi + if [ "$OSTYPE" = "beos" ]; then mimeset -F $MOZILLA_BIN fi
Attached patch patchSplinter Review
i copied the fix from the mozilla startup script.
I see it too.
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** This bug has been marked as a duplicate of 177996 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: