From 7c2964b6d860d5398e359dda99fdeecfc7ad035d Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Mon, 25 Jan 2016 21:53:00 -0800 Subject: [PATCH] Chrome wrapper for kali use. --- bin/google-chrome | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/google-chrome diff --git a/bin/google-chrome b/bin/google-chrome new file mode 100755 index 0000000..77c29cc --- /dev/null +++ b/bin/google-chrome @@ -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