Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

having trouble getting mozilla.cfg to work

  • 2 个回答
  • 12 人有此问题
  • 1 次查看
  • 最后回复者为 treewoods

more options

I keep getting failed to read mozilla.cfg error. i have local-settings saved in default/pref and it contains: pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); then i have a plain text mozila.cfg file saved in the same place and in the base mozilla folder it only contains the following: // set Firefox Default homepage defaultPref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=https://www.yahoo.com");

I have also tried a different version with: pref("browser.startup.homepage", http://www.yahoo.com);

some help would be much apprecated

I keep getting failed to read mozilla.cfg error. i have local-settings saved in default/pref and it contains: pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); then i have a plain text mozila.cfg file saved in the same place and in the base mozilla folder it only contains the following: // set Firefox Default homepage defaultPref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=https://www.yahoo.com"); I have also tried a different version with: pref("browser.startup.homepage", http://www.yahoo.com); some help would be much apprecated

被采纳的解决方案

A "failed to read mozilla.cfg error" means that either Firefox doesn't find the mozilla.cfg or the file has an error.

Make sure mozilla.cfg is a CFG file and doesn't have a hidden .txt file extension. The .js file in "defaults/pref" is working because otherwise Firefox wouldn't search for mozilla.cfg, but you can still try to add a comment line (//) at the start of the file like you have in mozilla.cfg.

定位到答案原位置 👍 2

所有回复 (2)

more options

选择的解决方案

A "failed to read mozilla.cfg error" means that either Firefox doesn't find the mozilla.cfg or the file has an error.

Make sure mozilla.cfg is a CFG file and doesn't have a hidden .txt file extension. The .js file in "defaults/pref" is working because otherwise Firefox wouldn't search for mozilla.cfg, but you can still try to add a comment line (//) at the start of the file like you have in mozilla.cfg.

more options

thanks so much. i kept seeing everywhere that the mozila.cfg file was just an example name and that it should be saved as a plain .txt file. thanks again.