Print message when using polkit

pull/3598/head
Ryan Gonzalez 7 years ago committed by Jussi Pakkanen
parent 60352521d1
commit 7e8c099387
  1. 2
      mesonbuild/scripts/meson_install.py

@ -250,6 +250,8 @@ def do_install(log_dir, datafilename):
run_install_script(d)
except PermissionError:
if shutil.which('pkexec') is not None and 'PKEXEC_UID' not in os.environ:
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())
else:

Loading…
Cancel
Save