diff options
Diffstat (limited to 'util/startfluxbox.in')
-rwxr-xr-x | util/startfluxbox.in | 9 |
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 | ||
4 | command="`basename \"$0\"`" | 4 | command="`basename \"$0\"`" |
5 | startup="$HOME/.fluxbox/startup" | 5 | fluxdir="$HOME/.@pkgprefix@fluxbox@pkgsuffix@" |
6 | startup="$fluxdir/startup" | ||
6 | 7 | ||
7 | while [ $# -gt 0 ]; do | 8 | while [ $# -gt 0 ]; do |
8 | case "$1" in | 9 | case "$1" in |
@@ -28,8 +29,8 @@ if [ -x "$startup" ]; then | |||
28 | elif [ -r "$startup" ]; then | 29 | elif [ -r "$startup" ]; then |
29 | exec sh "$startup" | 30 | exec sh "$startup" |
30 | else | 31 | else |
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 | ||
82 | exec @pkgbindir@/@pkgprefix@fluxbox@pkgsuffix@ | 83 | exec @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" |
85 | EOF | 86 | EOF |
86 | ) > "$startup" | 87 | ) > "$startup" |
87 | fi | 88 | fi |