defaults: enable beta menubar

This commit is contained in:
Mykola Grymalyuk
2023-03-28 09:33:08 -06:00
parent 513f20bbb1
commit c6ce71d589
2 changed files with 7 additions and 4 deletions

View File

@@ -5,8 +5,10 @@
- Resolves Safari 16.4 rendering issue - Resolves Safari 16.4 rendering issue
- Resolves left side menubar selections - Resolves left side menubar selections
- Implements automatic menubar text color - Implements automatic menubar text color
- New Menubar implementation can be disabled via `defaults write -g Amy.MenuBar2Beta -bool false`
- Implement full IOUSBHostFamily downgrade for UHCI/OHCI - Implement full IOUSBHostFamily downgrade for UHCI/OHCI
- Resolves panics on certain iMac models - Resolves panics on certain iMac models
- Resolve unused KDKs not being properly cleaned up
- Increment Binaries: - Increment Binaries:
- PatcherSupportPkg 0.9.2 - release - PatcherSupportPkg 0.9.2 - release

View File

@@ -309,7 +309,8 @@ class GenerateDefaults:
# Only disable AMFI if we officially support Ventura # Only disable AMFI if we officially support Ventura
self.constants.disable_amfi = True self.constants.disable_amfi = True
# Enable BetaBlur if user hasn't disabled it for key in ["Moraea_BlurBeta", "Amy.MenuBar2Beta"]:
is_blur_enabled = subprocess.run(["defaults", "read", "-g", "Moraea_BlurBeta"], stdout=subprocess.PIPE).stdout.decode("utf-8").strip() # Enable BetaBlur if user hasn't disabled it
if is_blur_enabled in ["false", "0"]: is_key_enabled = subprocess.run(["defaults", "read", "-g", key], stdout=subprocess.PIPE).stdout.decode("utf-8").strip()
subprocess.run(["defaults", "write", "-g", "Moraea_BlurBeta", "-bool", "true"]) if is_key_enabled not in ["false", "0"]:
subprocess.run(["defaults", "write", "-g", key, "-bool", "true"])