GUI: Standardize Application Identifier for defaults

This commit is contained in:
Mykola Grymalyuk
2022-05-25 12:47:33 -06:00
parent a2e0270f99
commit 5af3aff1d7
3 changed files with 6 additions and 5 deletions

View File

@@ -13,6 +13,7 @@
- Add "Search for disks again" option during OpenCore Install - Add "Search for disks again" option during OpenCore Install
- Prevent Idle Sleep while running long processes (ie. downloading, flashing) - Prevent Idle Sleep while running long processes (ie. downloading, flashing)
- Start OpenCore build automatically when entering Build menu - Start OpenCore build automatically when entering Build menu
- Standardize Application Identifier for defaults
- Resolve failing to find binaries with `--patch_sys_vol` argument - Resolve failing to find binaries with `--patch_sys_vol` argument
- Downgrade AppleFSCompressionTypeZlib to 12.3.1 on pre-Sandy Bridge Macs - Downgrade AppleFSCompressionTypeZlib to 12.3.1 on pre-Sandy Bridge Macs
- Resolves ZLib decompression kernel panics on 12.4 and newer - Resolves ZLib decompression kernel panics on 12.4 and newer

View File

@@ -47,7 +47,7 @@ coll = COLLECT(exe,
app = BUNDLE(coll, app = BUNDLE(coll,
name='OpenCore-Patcher.app', name='OpenCore-Patcher.app',
icon="payloads/OC-Patcher.icns", icon="payloads/OC-Patcher.icns",
bundle_identifier="com.dortania.opencore-legacy-patcher-wxpython", bundle_identifier="com.dortania.opencore-legacy-patcher",
info_plist={ info_plist={
"CFBundleShortVersionString": constants.Constants().patcher_version, "CFBundleShortVersionString": constants.Constants().patcher_version,
"NSHumanReadableCopyright": constants.Constants().copyright_date, "NSHumanReadableCopyright": constants.Constants().copyright_date,

View File

@@ -180,7 +180,7 @@ class wx_python_gui:
threading.Thread(target=self.check_for_updates).start() threading.Thread(target=self.check_for_updates).start()
def check_for_updates(self, event=None): def check_for_updates(self, event=None):
ignore_updates = subprocess.run(["defaults", "read", "com.dortania.opencore-legacy-patcher-wxpython", "IgnoreAppUpdates"], capture_output=True).stdout.decode("utf-8").strip() ignore_updates = subprocess.run(["defaults", "read", "com.dortania.opencore-legacy-patcher", "IgnoreAppUpdates"], capture_output=True).stdout.decode("utf-8").strip()
if ignore_updates not in ["1", "True", "TRUE"]: if ignore_updates not in ["1", "True", "TRUE"]:
self.constants.ignore_updates = False self.constants.ignore_updates = False
dict = updates.check_binary_updates(self.constants).check_binary_updates() dict = updates.check_binary_updates(self.constants).check_binary_updates()
@@ -202,7 +202,7 @@ class wx_python_gui:
elif responce == wx.ID_NO: elif responce == wx.ID_NO:
print("- Setting IgnoreAppUpdates to True") print("- Setting IgnoreAppUpdates to True")
self.constants.ignore_updates = True self.constants.ignore_updates = True
subprocess.run(["defaults", "write", "com.dortania.opencore-legacy-patcher-wxpython", "IgnoreAppUpdates", "-bool", "TRUE"]) subprocess.run(["defaults", "write", "com.dortania.opencore-legacy-patcher", "IgnoreAppUpdates", "-bool", "TRUE"])
else: else:
self.constants.ignore_updates = True self.constants.ignore_updates = True
print("- Ignoring App Updates due to defaults") print("- Ignoring App Updates due to defaults")
@@ -2369,9 +2369,9 @@ class wx_python_gui:
def set_ignore_app_updates_click(self, event): def set_ignore_app_updates_click(self, event):
self.constants.ignore_updates = self.set_ignore_app_updates_checkbox.GetValue() self.constants.ignore_updates = self.set_ignore_app_updates_checkbox.GetValue()
if self.constants.ignore_updates is True: if self.constants.ignore_updates is True:
subprocess.run(["defaults", "write", "com.dortania.opencore-legacy-patcher-wxpython", "IgnoreAppUpdates", "-bool", "TRUE"]) subprocess.run(["defaults", "write", "com.dortania.opencore-legacy-patcher", "IgnoreAppUpdates", "-bool", "TRUE"])
else: else:
subprocess.run(["defaults", "write", "com.dortania.opencore-legacy-patcher-wxpython", "IgnoreAppUpdates", "-bool", "FALSE"]) subprocess.run(["defaults", "write", "com.dortania.opencore-legacy-patcher", "IgnoreAppUpdates", "-bool", "FALSE"])
def firewire_click(self, event=None): def firewire_click(self, event=None):
if self.firewire_boot_checkbox.GetValue(): if self.firewire_boot_checkbox.GetValue():