Package: openbox
Version: 3.4.7.2-4
Severity: minor

/usr/bin/openbox-session does not respect $XDG_CONFIG_HOME environment
variable[1] when it comes to autostart.sh location. The attached patch
fixes it.

[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html

--
Piotr Lewandowski
--- data/xsession/openbox-session.in.orig	2009-07-19 19:21:38.949853645 +0200
+++ data/xsession/openbox-session.in	2009-07-19 19:22:14.421299337 +0200
@@ -7,7 +7,7 @@
   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

Reply via email to