The policies file contains your (organization’s) customizations to Firefox. It can e.g. include a custom homepage. It is placed next to the Firefox executable in the distributions/ directory. To find it using python, you can use #! /usr/bin/env python3 import shutil import sys from pathlib import Path from pathlib import PurePath def resolve_dir(exe="firefox"): """@return location of policy file (currently linux)""" ff_exe = Path(shutil.which(exe)).resolve() return PurePath(ff_exe).parent def policies_file(exe="firefox"): """@return location of policy file (currently linux)""" ff_dir = Path(resolve_dir(exe), "distribution") ff_dir.mkdir(exist_ok=True) return Path(ff_dir, "policies.json")
Firefox's Policies
Firefox's Policies
Firefox's Policies
The policies file contains your (organization’s) customizations to Firefox. It can e.g. include a custom homepage. It is placed next to the Firefox executable in the distributions/ directory. To find it using python, you can use #! /usr/bin/env python3 import shutil import sys from pathlib import Path from pathlib import PurePath def resolve_dir(exe="firefox"): """@return location of policy file (currently linux)""" ff_exe = Path(shutil.which(exe)).resolve() return PurePath(ff_exe).parent def policies_file(exe="firefox"): """@return location of policy file (currently linux)""" ff_dir = Path(resolve_dir(exe), "distribution") ff_dir.mkdir(exist_ok=True) return Path(ff_dir, "policies.json")