Browse Source

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 years ago
parent
commit
bc044d490f
1 changed files with 8 additions and 0 deletions
  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