ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Enterprise Environment. Need to set a default start page in Firefox43 for any current and ALL future users.

  • 5 ردود
  • 1 has this problem
  • 145 views
  • آخر ردّ كتبه cor-el

more options

I use Firefox in an enterprise environment that has no internet access and want to be able to set the default startup page for all users accessing the PC to our training center's webpage. If I change it in the about:config, it is only a "user setting" based on profile. I need to make it default so that any user logging onto the machine gets the desired page. I've tried several of the creating the js preference files and config files mentioned in some of the support blogs, but they do not work in Firefox 43. I'm responsible for about 1200 physical machines, and about 800 (and rising) VMs.

The training instructors don't want to have the students open the shortcut on the desktop and set it as their homepage each time they move to a different PC or classroom as during a 16 week course, the students are apt to forget.
I use Firefox in an enterprise environment that has no internet access and want to be able to set the default startup page for all users accessing the PC to our training center's webpage. If I change it in the about:config, it is only a "user setting" based on profile. I need to make it default so that any user logging onto the machine gets the desired page. I've tried several of the creating the js preference files and config files mentioned in some of the support blogs, but they do not work in Firefox 43. I'm responsible for about 1200 physical machines, and about 800 (and rising) VMs. The training instructors don't want to have the students open the shortcut on the desktop and set it as their homepage each time they move to a different PC or classroom as during a 16 week course, the students are apt to forget.

الحل المُختار

You get "Failed to read the configuration file" when there is a problem with the mozilla.cfg file. Check via the properties that the file doesn't have a hidden .txt Firefox (i.e. is a CFG file) since the screenshot show that mozilla.cfg is a Text file.

Read this answer in context 👍 1

All Replies (5)

more options

You can use the mozilla.cfg file in the Firefox program folder to set the default for preferences.

A local-settings.js file needs to be placed in the "defaults/pref" folder where also the channel-prefs.js file is located to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();		// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

The mozilla.cfg file needs to start with a comment line (//)

Note that setting the default for a complex (localized) pref needs special handling.

defaultPref("browser.startup.homepage","data:text/plain,browser.startup.homepage=http://home.example.com");

See Configuration:

more options

Thank you, but this does not seem to be working.

I created the local-settings.js file and placed it in the "defaults/prefs" folder. I created a mozilla.cfg file and placed it in the Mozilla Firefox folder in the Program Files folder.

The first time, I did get an error reading the "mozilla.cfg" file, which I corrected.  But it will still not display the desired page.  I tried about 4 different ways.

Attached is are 2 screenshots listing the 4 attempts ( all listed in one pic) I made for the mozilla.cfg file and the local-settings.js file

more options

The second screenshot shows that you have commented out the lines because they start with //. You would have to remove the leading // in the local-settings.js to make this file work.

The data variant in mozilla.cfg is only required if the set the default via defaultPref() and must not be used with pref() and lockPref() Also always place a comment line as the first line in mozilla.cfg because this line is always skipped.

// use one of these:
defaultPref("browser.startup.homepage","data:text/plain,browser.startup.homepage=http://home.example.com");
pref("browser.startup.homepage", "http://home.example.com");
lockPref("browser.startup.homepage", "http://home.example.com");
more options

Alright, when I remove the // in the local-settings.js file, I get a "Configuration error" popup that says: Failed to read the configuration file. Please contact your system administrator.

 My local-settings.js file shows:

pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);

I'm assuming (and I dislike that word) this is supposed to direct where to find the named file "mozilla.cfg" which to my understanding, is placed in the Mozilla Firefox folder in Program Files. My mozilla.cfg doesn't seem to work no matter what I try.

// set new lock pref lockPref("browser.startup.homepage", "http://lwns-site.jnn.local"); or // Set new default Value defaultPref("browser.startup.homepage","data:text/plain,browser.startup.homepage=http://lwns-site.jnn.local"); Pardon my ignorance in programming, it's never been my area before​, but seems to be becoming a priority.

more options

الحل المُختار

You get "Failed to read the configuration file" when there is a problem with the mozilla.cfg file. Check via the properties that the file doesn't have a hidden .txt Firefox (i.e. is a CFG file) since the screenshot show that mozilla.cfg is a Text file.