Attempting to set new tab with firefox.cfg yields 'Failed to read the configuration file'
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.