diff options
author | Ryan Gonzalez <rymg19@gmail.com> | 2018-05-17 16:30:33 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-05-18 17:12:24 +0300 |
commit | 7e8c099387ffcdfbdc55e3ef550cf7e8ab0e848d (patch) | |
tree | b521578ddc6c1ab551108126902b2568abd82008 | |
parent | 60352521d18e17ce85b944fb3e6af4c71e926773 (diff) | |
download | meson-7e8c099387ffcdfbdc55e3ef550cf7e8ab0e848d.zip meson-7e8c099387ffcdfbdc55e3ef550cf7e8ab0e848d.tar.gz meson-7e8c099387ffcdfbdc55e3ef550cf7e8ab0e848d.tar.bz2 |
Print message when using polkit
-rw-r--r-- | mesonbuild/scripts/meson_install.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/scripts/meson_install.py b/mesonbuild/scripts/meson_install.py index d3b6437..b51a351 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: |