diff --git a/opencore_legacy_patcher/sys_patch/sys_patch_auto.py b/opencore_legacy_patcher/sys_patch/sys_patch_auto.py index ee3d0724d..d1a0afde9 100644 --- a/opencore_legacy_patcher/sys_patch/sys_patch_auto.py +++ b/opencore_legacy_patcher/sys_patch/sys_patch_auto.py @@ -406,13 +406,6 @@ Please check the Github page for more information about this release.""" subprocess.run(["/usr/bin/xattr", "-cr", "/Library/Application Support/Dortania/OpenCore-Patcher.app"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - # Making app alias - # Simply an easy way for users to notice the app - # If there's already an alias or exiting app, skip - if not Path("/Applications/OpenCore-Patcher.app").exists(): - logging.info("- Making app alias") - subprocess_wrapper.run_as_root_and_verify(["/bin/ln", "-s", "/Library/Application Support/Dortania/OpenCore-Patcher.app", "/Applications/OpenCore-Patcher.app"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - def _create_rsr_monitor_daemon(self) -> bool: # Get kext list in /Library/Extensions that have the 'GPUCompanionBundles' property diff --git a/opencore_legacy_patcher/wx_gui/gui_main_menu.py b/opencore_legacy_patcher/wx_gui/gui_main_menu.py index 5f609d5dc..d91dda3e7 100644 --- a/opencore_legacy_patcher/wx_gui/gui_main_menu.py +++ b/opencore_legacy_patcher/wx_gui/gui_main_menu.py @@ -218,8 +218,6 @@ class MainFrame(wx.Frame): self.on_build_and_install() return - self._fix_local_install() - if "--update_installed" in sys.argv and self.constants.has_checked_updates is False and gui_support.CheckProperties(self.constants).host_can_build(): # Notify user that the update has been installed self.constants.has_checked_updates = True @@ -251,34 +249,6 @@ class MainFrame(wx.Frame): threading.Thread(target=self._check_for_updates).start() - def _fix_local_install(self) -> None: - """ - Work-around users manually copying the app to /Applications - We'll delete the app, and create a proper symlink - Note: This *shouldn't* be needed with installs after 0.6.7, but it's a good catch-all - """ - - if "--update_installed" not in sys.argv: - return - if self.constants.has_checked_updates is True: - return - - # Check if app exists in /Applications, and is not a symlink - if Path("/Applications/OpenCore-Patcher.app").exists() and Path("/Applications/OpenCore-Patcher.app").is_symlink() is False: - logging.info("Found user-installed app in /Applications, replacing with symlink") - # Delete app - result = subprocess.run(["/bin/rm", "-rf", "/Applications/OpenCore-Patcher.app"], capture_output=True) - if result.returncode != 0: - logging.info("Failed to delete app from /Applications") - return - - # Create symlink - result = subprocess.run(["/bin/ln", "-s", "/Library/Application Support/Dortania/OpenCore-Patcher.app", "/Applications/OpenCore-Patcher.app"], capture_output=True) - if result.returncode != 0: - logging.info("Failed to create symlink to /Applications") - return - - def _check_for_updates(self): if self.constants.has_checked_updates is True: return