]> git.pld-linux.org Git - packages/opera.git/commitdiff
use ~/.config/opera as opera dir in new installations
authorElan Ruusamäe <glen@delfi.ee>
Thu, 23 May 2013 21:46:37 +0000 (00:46 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 23 May 2013 21:46:37 +0000 (00:46 +0300)
opera.sh

index 008358753a44b890a6af1725eb8436f0f34b6ce5..f967d14e596c89a8d3f891ed4ae2ec3dc9a521f3 100755 (executable)
--- 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 "$@"
This page took 0.53841 seconds and 4 git commands to generate.