diff --git a/all/modules/chromium/chromium.sh b/all/modules/chromium/chromium.sh index 6f56778..ea25a70 100755 --- a/all/modules/chromium/chromium.sh +++ b/all/modules/chromium/chromium.sh @@ -9,6 +9,7 @@ local exe="/usr/bin/chromium" [[ ! $exe ]] && echo chromium not installed set && return 1 user=${CHROMIUM_USER} [[ $1 && ( ! $1 == -* ) ]] && user=$1 && shift +[[ $1 && ( ! $1 == -* ) ]] && url=$1 && shift user=${user:-$USER} if [[ $user == "$USER" ]]; then unset CHROME_CONFIG_HOME @@ -19,7 +20,7 @@ if [[ $user == "$USER" ]]; then [[ $user == "incognito" ]] && set -- "$@" "-incognito" dir=${CHROMIUM_HOME:-$DEFAULT} echo "$exe $@ --user-data-dir=$dir/$user" - "$exe" "$@" --user-data-dir="$dir"/"$user" + "$exe" "$@" --user-data-dir="$dir"/"$user" $url fi }