Questo sito potrebbe offrire funzionalità limitate durante le operazioni di manutenzione per migliorare l'esperienza utente. Se un articolo non risolve il tuo problema e vuoi richiedere supporto, la nostra comunità di supporto è pronta ad aiutarti tramite @FirefoxSupport su Twitter e /r/firefox su Reddit.

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

Validate Mozilla.cfg File

  • 1 risposta
  • 2 hanno questo problema
  • 1 visualizzazione
  • Ultima risposta di cor-el

more options

Hi,

I'm trying to set up some default configuration options for all users on the computer with a mozilla.cfg file. When it is in place, Firefox won't open. I get a "Failed to read the configuration file. Please contact your system administrator." This worked yesterday. I'm using Firefox 31.6.0 ESR. Is there a way I can validate this file somehow? I have no idea where to even begin in troubleshooting the text in the file. I also have to mention that none of this would be necessary if Mozilla didn't include so many annoying first-run pop-ups and settings by default. Here's the mozilla.cfg file:

// Defaults incl disable hardware acceleration lockPref("app.update.auto", false); lockPref("app.update.enabled", false); pref("layers.acceleration.disabled", true); pref("network.cookie.alwaysAcceptSessionCookies", true); pref("network.cookie.cookieBehavior", 1);

// Don't show 'know your rights' on first run pref("browser.rights.3.shown", true);

// Don't show WhatsNew on first run after every update pref("browser.startup.homepage_override.mstone","ignore");

// Disable plugin checking lockPref("plugins.hide_infobar_for_outdated_plugin", true); clearPref("plugins.update.url");

// Disable health reporter lockPref("datareporting.healthreport.service.enabled", false); lockpref("datareporting.healthreport.uploadEnabled", false);

// Disable crash reporter lockPref("toolkit.crashreporter.enabled", false); Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).submitReports = false;

Thanks in advance

Hi, I'm trying to set up some default configuration options for all users on the computer with a mozilla.cfg file. When it is in place, Firefox won't open. I get a "Failed to read the configuration file. Please contact your system administrator." This worked yesterday. I'm using Firefox 31.6.0 ESR. Is there a way I can validate this file somehow? I have no idea where to even begin in troubleshooting the text in the file. I also have to mention that none of this would be necessary if Mozilla didn't include so many annoying first-run pop-ups and settings by default. Here's the mozilla.cfg file: // Defaults incl disable hardware acceleration lockPref("app.update.auto", false); lockPref("app.update.enabled", false); pref("layers.acceleration.disabled", true); pref("network.cookie.alwaysAcceptSessionCookies", true); pref("network.cookie.cookieBehavior", 1); // Don't show 'know your rights' on first run pref("browser.rights.3.shown", true); // Don't show WhatsNew on first run after every update pref("browser.startup.homepage_override.mstone","ignore"); // Disable plugin checking lockPref("plugins.hide_infobar_for_outdated_plugin", true); clearPref("plugins.update.url"); // Disable health reporter lockPref("datareporting.healthreport.service.enabled", false); lockpref("datareporting.healthreport.uploadEnabled", false); // Disable crash reporter lockPref("toolkit.crashreporter.enabled", false); Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).submitReports = false; Thanks in advance

Tutte le risposte (1)

more options

I haven't tried the file, but I noticed one typo: lockpref instead of lockPref lockpref("datareporting.healthreport.uploadEnabled", false);

Note that the mozilla.cfg file is run as JavaScript any any errors in the file will throw an exception.