Files
skel/bin/google-chrome-noroot
2020-09-20 19:43:54 -07:00

11 lines
186 B
Bash
Executable File

#!/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