Firefox browser for default

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

Firefox browser for default

Post by denshik »

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.
User avatar
therube
Posts: 21698
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Firefox browser for default (Linux)

Post by therube »

-setDefaultBrowser seemingly should be correct.

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

Otherwise maybe something here, Default browser?
Fire 750, bring back 250.
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
User avatar
Grumpus
Posts: 13236
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: Firefox browser for default (Linux)

Post by Grumpus »

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.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
milomak
Posts: 79
Joined: August 8th, 2008, 4:01 pm

Re: Firefox browser for default (Linux)

Post by milomak »

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
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Re: Firefox browser for default (Linux)

Post by dickvl »

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: 778
Joined: December 30th, 2009, 11:25 pm

Re: Firefox browser for default (Linux)

Post by kreemoweet »

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

Re: Firefox browser for default (Linux)

Post by denshik »

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
Post Reply