From 7ba22413a2cc10ef053cbd1a3ab09ca2d1f8fc0c Mon Sep 17 00:00:00 2001 From: pekdon <pekdon> Date: Sat, 9 Feb 2002 14:56:36 +0000 Subject: Changed config file location to ~/.fluxbox/bsetbg --- util/bsetbg | 10 +++++++--- 1 file 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() case $UID in 0) if [ "$ARGUMENT" != "-r" ]; then echo "$NAME: running X as root is a security hazard, and is NOT a good idea!" - echo "$NAME: if you insist upon having a ~/.bsetbgrc for root, run bsetbg with" + echo "$NAME: if you insist upon having a ~/.fluxbox/bsetbg for root, run bsetbg with" echo "$NAME: the '-r' flag to force its creation. you have been warned!" exit 1 fi @@ -336,6 +336,10 @@ create_config() INFO= && error_msg 3 fi + if [ ! -d ~/.fluxbox ]; then + mkdir ~/.fluxbox + fi + echo "# $CONFIG" >> $CONFIG echo "#" >> $CONFIG echo "# automagically generated with loving care by $NAME $VERSION on `date`" >> $CONFIG @@ -601,7 +605,7 @@ debug() } IMAGE_APPS="display Esetroot wmsetbg xv xli qiv" -CONFIG="$HOME/.bsetbgrc" +CONFIG="$HOME/.fluxbox/bsetbg" NAME=bsetbg VERSION=1.12 MORE="(C) 2000 by lordzork industries (http://lordzork.com/)" @@ -696,4 +700,4 @@ case $1 in fi help_msg fi -esac \ No newline at end of file +esac -- cgit v0.11.2