소스 검색

if hostname is changed, update X11 cookie

* X11 will have trouble starting if the stale cookie is still present (I believe)
* Chromium will complain about the 'singleton' having the stale hostname
clementinecomputing 5 년 전
부모
커밋
bc044d490f
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      aux/deploy-busunit-interactive

+ 8 - 0
aux/deploy-busunit-interactive

@@ -595,6 +595,14 @@ if [[ "$changehostname" =~ ^[yY]$ ]] ; then
   sudo mv $tfn /etc/hosts
   sudo chmod 644 /etc/hosts
 
+  echo "  Removing stale Xauth cookie"
+  sudo xauth remove popufaredev/unix:0
+
+  echo "  Removing stale Singletone for Chromium"
+  sudo rm -f /root/.config/[cC]hromium/[Ss]ingleton*
+  sudo rm -f /home/pi/.config/[cC]hromium/[Ss]ingleton*
+  sudo rm -f /home/bus/.config/[cC]hromium/[Ss]ingleton*
+
 fi