mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
gui_main_menu.py: Add logging
This commit is contained in:
@@ -253,6 +253,7 @@ class MainFrame(wx.Frame):
|
|||||||
|
|
||||||
# Check if app exists in /Applications, and is not a symlink
|
# 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:
|
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
|
# Delete app
|
||||||
result = subprocess.run(["rm", "-rf", "/Applications/OpenCore-Patcher.app"], capture_output=True)
|
result = subprocess.run(["rm", "-rf", "/Applications/OpenCore-Patcher.app"], capture_output=True)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user