From 7e8c099387ffcdfbdc55e3ef550cf7e8ab0e848d Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Thu, 17 May 2018 16:30:33 -0500 Subject: [PATCH] Print message when using polkit --- mesonbuild/scripts/meson_install.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/scripts/meson_install.py b/mesonbuild/scripts/meson_install.py index d3b643767..b51a351ed 100644 --- a/mesonbuild/scripts/meson_install.py +++ b/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: