mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 22:50:51 +10:00
gui_main.py: fix Privacy prompt
This commit is contained in:
+7
-3
@@ -1184,12 +1184,16 @@ class wx_python_gui:
|
|||||||
self.popup.SetYesNoLabels("Open System Preferences", "Ignore")
|
self.popup.SetYesNoLabels("Open System Preferences", "Ignore")
|
||||||
answer = self.popup.ShowModal()
|
answer = self.popup.ShowModal()
|
||||||
if answer == wx.ID_YES:
|
if answer == wx.ID_YES:
|
||||||
subprocess.Popen(
|
output =subprocess.run(
|
||||||
[
|
[
|
||||||
"osascript", "-e",
|
"osascript", "-e",
|
||||||
'tell app "System Preferences" to reveal anchor "General" of pane id "com.apple.preference.security"'
|
'tell app "System Preferences" to reveal anchor "General" of pane id "com.apple.preference.security"',
|
||||||
]
|
"-e", 'tell app "System Preferences" to activate',
|
||||||
|
],
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.PIPE
|
||||||
)
|
)
|
||||||
|
if output.returncode == 0:
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
self.OnCloseFrame(None)
|
self.OnCloseFrame(None)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user