--- /opt/chromium-gost/chromium-gost.orig 2018-06-19 10:26:39.039011608 +0500 +++ /opt/chromium-gost/chromium-gost 2018-06-19 10:27:09.731224997 +0500 @@ -46,4 +46,8 @@ exec 2> >(exec cat >&2) # Note: exec -a below is a bashism. -exec -a "$0" "$HERE/chrome" "$@" +if ! [[ "$*" =~ \-user\-data\-dir= ]]; then + exec -a "$0" "$HERE/chrome" "-user-data-dir=$HOME/.config/chromium-gost" "$@" +else + exec -a "$0" "$HERE/chrome" "$@" +fi