Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Learn More

Attempting to set new tab with firefox.cfg yields 'Failed to read the configuration file'

  • Няма отговори
  • 1 има този проблем
  • 1 изглед
more options

I'm attempting to set the new tab page using the autoconfig.cfg and autoconfig.js files. I have the following (Ubuntu 20.0.4):

/usr/lib/firefox/autoconfig.cfg ``` // set new tab page var {classes:Cc,interfaces:Ci,utils:Cu} = Components; aboutNewTabService = Cc["@mozilla.org/browser/aboutnewtab-service;1"].getService(Ci.nsIAboutNewTabService); aboutNewTabService.newTabURL = "file:///home/Desktop/index.html"; ```

/usr/lib/firefox/defaults/pref/autoconfig.js ``` pref("general.config.filename", "autoconfig.cfg"); pref("general.config.obscure_value", 0); pref("general.config.sandbox_enabled", false); ```

When I restart firefox, a dialogue pops up saying 'Failed to read the configuration file. Please contact your system administrator.' The new tab is unchanged. Am I doing something wrong? I've seen [thread] and believe I've followed everything that was said.

I'm attempting to set the new tab page using the autoconfig.cfg and autoconfig.js files. I have the following (Ubuntu 20.0.4): /usr/lib/firefox/autoconfig.cfg ``` // set new tab page var {classes:Cc,interfaces:Ci,utils:Cu} = Components; aboutNewTabService = Cc["@mozilla.org/browser/aboutnewtab-service;1"].getService(Ci.nsIAboutNewTabService); aboutNewTabService.newTabURL = "file:///home/Desktop/index.html"; ``` /usr/lib/firefox/defaults/pref/autoconfig.js ``` pref("general.config.filename", "autoconfig.cfg"); pref("general.config.obscure_value", 0); pref("general.config.sandbox_enabled", false); ``` When I restart firefox, a dialogue pops up saying 'Failed to read the configuration file. Please contact your system administrator.' The new tab is unchanged. Am I doing something wrong? I've seen [[https://support.mozilla.org/en-US/questions/1251199#answer-1199709|this thread]] and believe I've followed everything that was said.