From 79d0c64ef1622b468bcb75fcf8b335329657fbf3 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 18 Dec 2019 13:45:50 -0600 Subject: [PATCH] Add systemctl try-restart polkit to bootstrap.sh This makes it more properly install things so that you don't get the nasty pkexec pop-ups with dev builds. --- bootstrap.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index c85ba26..de5a4b0 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -40,5 +40,10 @@ set -x sudo ninja install +# Restart polkit so we don't get pop-ups whenever we pkexec +if systemctl list-unit-files |grep -q polkit.service; then + sudo systemctl try-restart polkit +fi + # Reload systemd configuration so that it picks up the new service. systemctl --user daemon-reload