From 100d59fa7a0e00c493d6d72f806585ca1355db78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 24 May 2013 00:46:37 +0300 Subject: [PATCH] use ~/.config/opera as opera dir in new installations --- opera.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 "$@" -- 2.44.0