Files
skel/bin/google-chrome-noroot
2025-09-03 14:52:33 -07:00

15 lines
241 B
Bash
Executable File

#!/bin/bash
CHROME=`which google-chrome`
if [ `id -u` != "0" ] ; then
exec "$CHROME" "$@"
fi
args=()
for x in "$@"; do
args+=("$(printf %q "$x")")
done
su -c "$CHROME --user-data-dir=${HOME}/.chrome-data-dir ${args[*]}" chromeuser