X
Tap here to go to the mobile version of the site.

Support Forum

setting initial default homepage

Posted

I am deploying FF18.0.2 to about 700 workstations, in the past I have been using;

Mozilla.cfg, copied to <install_Folder> //Firefox Default Settings

// set Firefox Default homepage pref("browser.startup.homepage","http://myhome.pagesite.org");

// disable default browser check pref("browser.shell.checkDefaultBrowser", false); pref("browser.startup.homepage_override.mstone", "ignore");

// disable application updates pref("app.update.enabled", false)

// disables the 'know your rights' button from displaying on first run pref("browser.rights.3.shown", true);

// disables the request to send performance data from displaying pref("toolkit.telemetry.prompted", 2); pref("toolkit.telemetry.rejected", true);

local-settings.js; Copied to <install_folder>\defaults\pref

pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); lockPref("app.update.auto", false); lockPref("app.update.enabled", false);

but the endusers can not change this homepage, how do I enable them to be able to change the default page?

I am deploying FF18.0.2 to about 700 workstations, in the past I have been using; Mozilla.cfg, copied to <install_Folder> //Firefox Default Settings // set Firefox Default homepage pref("browser.startup.homepage","http://myhome.pagesite.org"); // disable default browser check pref("browser.shell.checkDefaultBrowser", false); pref("browser.startup.homepage_override.mstone", "ignore"); // disable application updates pref("app.update.enabled", false) // disables the 'know your rights' button from displaying on first run pref("browser.rights.3.shown", true); // disables the request to send performance data from displaying pref("toolkit.telemetry.prompted", 2); pref("toolkit.telemetry.rejected", true); local-settings.js; Copied to <install_folder>\defaults\pref pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); lockPref("app.update.auto", false); lockPref("app.update.enabled", false); but the endusers can not change this homepage, how do I enable them to be able to change the default page?

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4

More Information

philipp
  • Top 10 Contributor
  • Moderator
2974 solutions 13817 answers

hello, change that into

// set Firefox Default homepage 
defaultPref("browser.startup.homepage","http://XXX"); 

for reference please see http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/

hello, change that into // set Firefox Default homepage defaultPref("browser.startup.homepage","http://XXX"); for reference please see http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/

Question owner

Thanks for trying, but when I do that FF wont open; Error "Failed to read the configuration file. Please contact your system administrator"

made that change to the Mozilla.cfg file, which is copied to "c:\program files (x86)\Mozilla Firefox"

Thanks for trying, but when I do that FF wont open; Error "Failed to read the configuration file. Please contact your system administrator" made that change to the Mozilla.cfg file, which is copied to "c:\program files (x86)\Mozilla Firefox"
cor-el
  • Top 10 Contributor
  • Moderator
12312 solutions 113983 answers

Make sure that the file name is mozilla.cfg (;case sensitive; all lowercase).

Does it work with the pref() function?

Also try to save the mozilla.cfg file with UNIX line ending (i.e. only a linefeed and not cr/lf).

Make sure that the file name is mozilla.cfg (;case sensitive; all lowercase). Does it work with the pref() function? Also try to save the mozilla.cfg file with UNIX line ending (i.e. only a linefeed and not cr/lf).

Question owner

The pref() function works fine, I have set a few prefs set during install, but this is the one I can not get to make so the users can change it!

have tried;

        userpref()
        defaultPref()

Only pref() works

The pref() function works fine, I have set a few prefs set during install, but this is the one I can not get to make so the users can change it! have tried; userpref() defaultPref() Only pref() works
cor-el
  • Top 10 Contributor
  • Moderator
12312 solutions 113983 answers

The "browser.startup.homepage" is a complex pref and apparently requires a different approach to set as a default value.

See:

  • defaultPref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=http://www.bbc.co.uk");
The "browser.startup.homepage" is a complex pref and apparently requires a different approach to set as a default value. See: *http://mike.kaply.com/2012/03/15/customizing-firefox-default-preference-files/ *defaultPref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=http://www.bbc.co.uk");