Open Bug 625299 Opened 9 years ago Updated 4 months ago

'set as default browser' function wrongly puts double quotes around %s

Categories

(Firefox :: Shell Integration, defect)

All
Linux
defect
Not set

Tracking

()

UNCONFIRMED

People

(Reporter: nobody10331033, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110108 Gentoo Firefox/3.6.13
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110108 Gentoo Firefox/3.6.13

When starting Firefox, I am prompted to set it as the default browser. I choose yes. The 'default browser' value in Gnome's Preferred Applications is now:

/usr/lib64/firefox/firefox "%s"

The use of double quotes around %s is bad because if no file/URI is passed (such as when I press the web browser hotkey), the command line would become:

/usr/lib64/firefox/firefox ""

which would open a new tab with a directory index of my home folder (the default working directory).

The correct value to set it to is without the double quotes around %s, so that when no file/URI is passed (such as the web browser hotkey) it launches

/usr/lib64/firefox/firefox

with no 'empty argv[1]'.

Reproducible: Always

Steps to Reproduce:
1. invoke 'set as default browser'
2. press web browser hotkey or whatever launches default browser with no file/URI
Actual Results:  
Default browser is set to "/path/to/firefox "%s"" and the second step opens a new tab with home directory.

Expected Results:  
Default browser is set to "/path/to/firefox %s" and the second step opens a new window with the home page.
You need to log in before you can comment on or make changes to this bug.