mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
15 lines
241 B
Bash
Executable File
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
|