#!/bin/sh
PARAMS="$@"
if [ $(whoami) = "root" ]; then
	su spot -c "/usr/bin/google-chrome --user-data-dir=/root/spot/.config/google-chrome/ $PARAMS"
else
exec /usr/bin/google-chrome --user-data-dir=/root/spot/.config/google-chrome/ "$PARAMS" 
fi
