gui_settings.py: Adjust pathing for root settings

This commit is contained in:
Mykola Grymalyuk
2024-09-25 11:40:35 -06:00
parent a37571a8a5
commit 796b5bcd9e

View File

@@ -1138,7 +1138,7 @@ Hardware Information:
value_type = "-bool" value_type = "-bool"
logging.info(f"Updating System Defaults (root): {variable} = {value} ({value_type})") logging.info(f"Updating System Defaults (root): {variable} = {value} ({value_type})")
subprocess_wrapper.run_as_root(["/usr/bin/defaults", "write", "-globalDomain", variable, value_type, str(value)]) subprocess_wrapper.run_as_root(["/usr/bin/defaults", "write", "/Library/Preferences/.GlobalPreferences.plist", variable, value_type, str(value)])
def _find_parent_for_key(self, key: str) -> str: def _find_parent_for_key(self, key: str) -> str: