MozillaZine

Firefox browser for default

Discussion of general topics about Mozilla Firefox
denshik
 
Posts: 2
Joined: April 14th, 2017, 10:43 am

Post Posted April 14th, 2017, 11:05 am

Good afternoon,
how can i set mozilla default browser using console or about:config options?
command line operator doesn't work.
Code: Select all
firefox.exe -silent -setDefaultBrowser
Last edited by DanRaisch on April 14th, 2017, 11:57 am, edited 1 time in total.

therube

User avatar
 
Posts: 17184
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted April 15th, 2017, 4:54 am

-setDefaultBrowser seemingly should be correct.

While you may not want it, have you tried without the -silent switch?

Otherwise maybe something here, Default browser?
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

Grumpus

User avatar
 
Posts: 11306
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Post Posted April 15th, 2017, 6:31 am

To set the default browser /edit/preferences/General/Startup/Always check if Firefox is your default browser
- there should also be a verification line: Firefox is your default browser.
In some versions the "Startup" setting is removed and may be restored with Setting Sanity 1.2 extension. (still functions with 52.0.2)
You can also go into your control panel and select "Preferred Applications" or if there is a similar item, should allow setting default there as well.

milomak
 
Posts: 26
Joined: August 8th, 2008, 4:01 pm

Post Posted April 15th, 2017, 9:44 am

what distro are you using?

in my experience, if ff (or any other browser) is not the default it will ask you if you want to make it the default

dickvl

User avatar
 
Posts: 52100
Joined: July 18th, 2005, 3:25 am

Post Posted April 15th, 2017, 2:31 pm

You posted with a Linux useragent, but you post a command for Windows (firefox.exe -silent -setDefaultBrowser) and witrh an older Firefox 49 version.
Mozilla/5.0 (X11; Linux i686; rv:49.0) Gecko/20100101 Firefox/49.0

What platform and Firefox version is this about?

kreemoweet
 
Posts: 699
Joined: December 30th, 2009, 11:25 pm

Post Posted April 15th, 2017, 9:08 pm

You need to consult the documentation for your own particular Linux distribution and desktop environment. They do not all work the same, and some Linux distros
are just plain broken. Anything in about:config would be useless, since it's all internal to FF, and the default browser setting is at the operating system level.

denshik
 
Posts: 2
Joined: April 14th, 2017, 10:43 am

Post Posted April 16th, 2017, 12:34 am

No, question is exactly about windows 7 and firefox (starting from version 40 and go on). I try to make firefox installation unattended, so this reason looking to set browser as default without any addition manipulations.
P.S.

After confirming with regedit, seems it is my mistake, command works fine
Code: Select all
firefox.exe -silent -setDefaultBrowser


Registry key at HKEY_CLASSES_ROOT\http\shell\open\command changes successfully
Code: Select all
C:\Program Files\Mozilla Firefox\firefox.exe" -osint -url "%1

Return to Firefox General


Who is online

Users browsing this forum: No registered users and 4 guests