Fix pkexec command for installation via polkit

This commit is contained in:
Xi Ruoyao 2018-07-04 22:38:56 +08:00 committed by Nirbheek Chauhan
parent f18af09189
commit 8893d03703
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ class Installer:
print('Installation failed due to insufficient permissions.')
print('Attempting to use polkit to gain elevated privileges...')
os.execlp('pkexec', 'pkexec', sys.executable, main_file, *sys.argv[1:],
os.getcwd())
'-C', os.getcwd())
else:
raise