From 89eace13d6f7bd7ca2fbd47858a6b653d689c5e4 Mon Sep 17 00:00:00 2001 From: rathnor Date: Tue, 29 Apr 2003 11:26:34 +0000 Subject: - Fixed relative path bug - Simpler structure. --- util/fbsetbg | 111 +++++++++++++++++++---------------------------------------- 1 file changed, 36 insertions(+), 75 deletions(-) diff --git a/util/fbsetbg b/util/fbsetbg index be7b093..0aa0a31 100644 --- a/util/fbsetbg +++ b/util/fbsetbg @@ -23,7 +23,7 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -# $Id: fbsetbg,v 1.2 2003/04/28 14:45:13 fluxgen Exp $ +# $Id: fbsetbg,v 1.3 2003/04/29 11:26:34 rathnor Exp $ # # Portability notes: @@ -38,9 +38,10 @@ # compensate for that. # -wpsetters='wmsetbg Esetroot xli xsetbg display qiv xv xsri' +wpsetters='Esetroot wmsetbg display qiv xv xsri xli xsetbg' lastwallpaper=${HOME}/.fluxbox/lastwallpaper + WHOAMI=`whoami` [ "$WHOAMI" = "root" ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin @@ -82,7 +83,7 @@ EOF display_tips(){ cat< $lastwallpaper - echo $wallpaper >> $lastwallpaper + #if the $wallpaper path is absolute + echo $option > $lastwallpaper + case $wallpaper in + /*) echo $wallpaper >> $lastwallpaper ;; + *) echo $PWD/$wallpaper >> $lastwallpaper ;; + esac } debugfbsetbg (){ - - standardrant (){ - cat <