]> Dogcows Code - chaz/openbox/blobdiff - data/xsession/openbox-session.in
Respect $XDG_CONFIG_HOME in openbox-session
[chaz/openbox] / data / xsession / openbox-session.in
index b3f1c0574b8742883b0ce6d1b28714df69538390..259dc580cd594331b4dce946995fa3aaba3c0bcd 100644 (file)
@@ -1,6 +1,13 @@
 #!/bin/sh
 
-AUTOSTART="$HOME/.config/openbox/autostart.sh"
+if test -n "$1"; then
+    echo "Syntax: openbox-session"
+    echo
+    echo "See the openbox-session(1) manpage for help."
+  exit
+fi
+
+AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/autostart.sh"
 GLOBALAUTOSTART="@configdir@/openbox/autostart.sh"
 
 if test -e $AUTOSTART; then
This page took 0.020537 seconds and 4 git commands to generate.