diff options
-rwxr-xr-x | util/bsetbg | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/util/bsetbg b/util/bsetbg index ccf0fd0..9f3fc12 100755 --- a/util/bsetbg +++ b/util/bsetbg | |||
@@ -311,7 +311,7 @@ create_config() | |||
311 | case $UID in 0) | 311 | case $UID in 0) |
312 | if [ "$ARGUMENT" != "-r" ]; then | 312 | if [ "$ARGUMENT" != "-r" ]; then |
313 | echo "$NAME: running X as root is a security hazard, and is NOT a good idea!" | 313 | echo "$NAME: running X as root is a security hazard, and is NOT a good idea!" |
314 | echo "$NAME: if you insist upon having a ~/.bsetbgrc for root, run bsetbg with" | 314 | echo "$NAME: if you insist upon having a ~/.fluxbox/bsetbg for root, run bsetbg with" |
315 | echo "$NAME: the '-r' flag to force its creation. you have been warned!" | 315 | echo "$NAME: the '-r' flag to force its creation. you have been warned!" |
316 | exit 1 | 316 | exit 1 |
317 | fi | 317 | fi |
@@ -336,6 +336,10 @@ create_config() | |||
336 | INFO= && error_msg 3 | 336 | INFO= && error_msg 3 |
337 | fi | 337 | fi |
338 | 338 | ||
339 | if [ ! -d ~/.fluxbox ]; then | ||
340 | mkdir ~/.fluxbox | ||
341 | fi | ||
342 | |||
339 | echo "# $CONFIG" >> $CONFIG | 343 | echo "# $CONFIG" >> $CONFIG |
340 | echo "#" >> $CONFIG | 344 | echo "#" >> $CONFIG |
341 | echo "# automagically generated with loving care by $NAME $VERSION on `date`" >> $CONFIG | 345 | echo "# automagically generated with loving care by $NAME $VERSION on `date`" >> $CONFIG |
@@ -601,7 +605,7 @@ debug() | |||
601 | } | 605 | } |
602 | 606 | ||
603 | IMAGE_APPS="display Esetroot wmsetbg xv xli qiv" | 607 | IMAGE_APPS="display Esetroot wmsetbg xv xli qiv" |
604 | CONFIG="$HOME/.bsetbgrc" | 608 | CONFIG="$HOME/.fluxbox/bsetbg" |
605 | NAME=bsetbg | 609 | NAME=bsetbg |
606 | VERSION=1.12 | 610 | VERSION=1.12 |
607 | MORE="(C) 2000 by lordzork industries (http://lordzork.com/)" | 611 | MORE="(C) 2000 by lordzork industries (http://lordzork.com/)" |
@@ -696,4 +700,4 @@ case $1 in | |||
696 | fi | 700 | fi |
697 | help_msg | 701 | help_msg |
698 | fi | 702 | fi |
699 | esac \ No newline at end of file | 703 | esac |