Chrome wrapper for kali use.

This commit is contained in:
David Tomaschik
2016-01-25 21:53:00 -08:00
parent 452dfa1ec2
commit 7c2964b6d8

10
bin/google-chrome Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
CHROME=`which google-chrome`
if [ `id -u` != "0" ] ; then
exec $CHROME "$@"
fi
CMD="${CHROME} --user-data-dir=${HOME}/.chrome-data-dir \"$@\""
su -c "${CMD}" chromeuser