1

I want to automate the setup of Firefox on Linux, to harden it and change the default search engine. You can almost edit all configuration options via the user.js file, but not the default search engine setting.

Is there a way to do it programmatically?

2 Answers 2

3

Setting the default search engine is too malware prone and cant be accomplished except through group policies in Windows, or for Linux through something called Enterprise Policy Engine which is available for Firefox.

This works through an addon called Enterprise Policy Generator and the use of a policies.json file. Both links will set you on your way to make use of the enterprise policy engine.

In your policies.json file, the following lines allow you to define the default search engine:

{
  "policies": {
    "SearchEngines": {
      "Default": "NAME_OF_SEARCH_ENGINE"
    }
  }
}
0

I'm no expert in Firefox but could this be done with about:config as an automated install process? Or are you already using about:config and this answer is completely redundant? :)

2
  • 1
    As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Nov 15, 2022 at 18:02
  • My answer is exceedingly clear to anyone familiar with the topic.
    – Michael
    Nov 15, 2022 at 18:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .