gui.py: Resolve admin relaunch with space in path

This commit is contained in:
Mykola Grymalyuk
2022-01-05 13:37:10 -07:00
parent e701b5b851
commit a0978dfd20

View File

@@ -87,7 +87,7 @@ class wx_python_gui:
args = [ args = [
"osascript", "osascript",
"-e", "-e",
f'''do shell script "{args_string}"''' f'''do shell script "'{args_string}'"'''
' with prompt "OpenCore Legacy Patcher needs administrator privileges to mount your EFI."' ' with prompt "OpenCore Legacy Patcher needs administrator privileges to mount your EFI."'
" with administrator privileges" " with administrator privileges"
" without altering line endings", " without altering line endings",