From: Elan Ruusamäe Date: Thu, 23 May 2013 21:46:37 +0000 (+0300) Subject: use ~/.config/opera as opera dir in new installations X-Git-Tag: auto/th/opera-12.15-4~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=100d59fa7a0e00c493d6d72f806585ca1355db78;p=packages%2Fopera.git use ~/.config/opera as opera dir in new installations --- diff --git a/opera.sh b/opera.sh index 0083587..f967d14 100755 --- a/opera.sh +++ b/opera.sh @@ -5,5 +5,13 @@ if [ -f /usr/share/java-utils/java-functions ]; then set_jvm fi export OPERA_DIR=/usr/share/opera -export OPERA_PERSONALDIR=$HOME/.opera + +# Legacy dir +export OPERA_PERSONALDIR="$HOME/.opera" + +# XDG path +if [ ! -d "$OPERA_PERSONALDIR" ]; then + OPERA_PERSONALDIR="${XDG_CONFIG_HOME:-$HOME/.config}/opera" +fi + exec /usr/lib/opera/opera "$@"