Respect $XDG_CONFIG_HOME in openbox-session
authorPiotr Lewandowski <piotr.lewandowski@gmail.com>
Sun, 20 Sep 2009 13:40:38 +0000 (15:40 +0200)
committerMikael Magnusson <mikachu@gmail.com>
Sun, 20 Sep 2009 13:40:38 +0000 (15:40 +0200)
data/xsession/openbox-session.in

index cc2169f..259dc58 100644 (file)
@@ -7,7 +7,7 @@ if test -n "$1"; then
   exit
 fi
 
   exit
 fi
 
-AUTOSTART="$HOME/.config/openbox/autostart.sh"
+AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/autostart.sh"
 GLOBALAUTOSTART="@configdir@/openbox/autostart.sh"
 
 if test -e $AUTOSTART; then
 GLOBALAUTOSTART="@configdir@/openbox/autostart.sh"
 
 if test -e $AUTOSTART; then