aboutsummaryrefslogtreecommitdiff
path: root/util/startfluxbox.in
diff options
context:
space:
mode:
Diffstat (limited to 'util/startfluxbox.in')
-rwxr-xr-xutil/startfluxbox.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/util/startfluxbox.in b/util/startfluxbox.in
index 8575555..fee1203 100755
--- a/util/startfluxbox.in
+++ b/util/startfluxbox.in
@@ -2,7 +2,8 @@
2# $Id$ 2# $Id$
3 3
4command="`basename \"$0\"`" 4command="`basename \"$0\"`"
5startup="$HOME/.fluxbox/startup" 5fluxdir="$HOME/.@pkgprefix@fluxbox@pkgsuffix@"
6startup="$fluxdir/startup"
6 7
7while [ $# -gt 0 ]; do 8while [ $# -gt 0 ]; do
8 case "$1" in 9 case "$1" in
@@ -28,8 +29,8 @@ if [ -x "$startup" ]; then
28elif [ -r "$startup" ]; then 29elif [ -r "$startup" ]; then
29 exec sh "$startup" 30 exec sh "$startup"
30else 31else
31 if [ ! -d "$HOME/.fluxbox" ]; then 32 if [ ! -d $fluxdir ]; then
32 mkdir -p "$HOME/.fluxbox/backgrounds" "$HOME/.fluxbox/styles" "$HOME/.fluxbox/pixmaps" 33 mkdir -p "$fluxdir/backgrounds" "$fluxdir/styles" "$fluxdir/pixmaps"
33 fi 34 fi
34 if [ ! -r "$startup" ]; then 35 if [ ! -r "$startup" ]; then
35 ( cat << EOF 36 ( cat << EOF
@@ -81,7 +82,7 @@ else
81 82
82exec @pkgbindir@/@pkgprefix@fluxbox@pkgsuffix@ 83exec @pkgbindir@/@pkgprefix@fluxbox@pkgsuffix@
83# or if you want to keep a log: 84# or if you want to keep a log:
84# exec @pkgbindir@/@pkgprefix@fluxbox@pkgsuffix@ -log "$HOME/.fluxbox/log" 85# exec @pkgbindir@/@pkgprefix@fluxbox@pkgsuffix@ -log "$fluxdir/log"
85EOF 86EOF
86 ) > "$startup" 87 ) > "$startup"
87 fi 88 fi