I wanted to change the default search engine for Tor Browser in disposable VMs but it’s not possible to do this using user.json file in /usr/local/etc/torbrowser.d/user.js. But it’s possible to do this using policies.json file.
In Whonix-Workstation disposable template (whonix-ws-xx-dvm) add these lines to the /rw/config/rc.local file:
And shutdown the disposable template.
After this all the disp VMs based on this disposable template will use these policies.
It’s also possible to set the security slider using policiy file but it’ll only work if it’s locked and you won’t be able to change the security slider in Tor Browser.
Tor Browser doesn’t have an API / documented setting for that. That feature request was rejected by its upstream (original) developers.
This is unspecific to Whonix:
This is best investigated as per:
The name, functionality of of the settings, is completely up to upstream. Upstream’s here are The Tor Project that developers Tor Browser and by extension Mozilla that developed Firefox, which Tor Browser is based on.
Therefore the advanced topic of the settings in a Tor Browser / Firefox policies file, it’s best to redirect it to upstream(s).
What do I need to put into policies.json to permanently enable the dark theme? Also, is there a way to enable a non-default search engine such as a searx instance?