google-chrome: Only change $HOME if it is the default
authorMartin Pitt <martin@piware.de>
Mon, 7 May 2018 12:58:30 +0000 (14:58 +0200)
committerMartin Pitt <martin@piware.de>
Mon, 7 May 2018 12:58:30 +0000 (14:58 +0200)
google-chrome

index 486e6aeb1009767a83b589f2cb3f49fdbce796c1..6ea8b964fd66116789fe30c97c22968a864bd8c4 100755 (executable)
@@ -1,3 +1,5 @@
 #!/bin/sh
-export HOME=/home/martin/.cache/chrome-home
-exec /usr/bin/google-chrome
+if [ "$HOME" = "/home/martin" ]; then
+    export HOME=/home/martin/.cache/chrome-home
+fi
+exec /usr/bin/google-chrome "$@"