소스 검색

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.
Jason Ekstrand 5 년 전
부모
커밋
79d0c64ef1
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      bootstrap.sh

+ 5 - 0
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