From 48c3af9f9c0dd8e9d56c23dc1253f1845144a562 Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 24 Mar 2007 16:34:32 +0000 Subject: fixed a little bug in fbsetbg when DISPLAY doesn't have .0 after it --- ChangeLog | 2 ++ util/fbsetbg | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index f515454..9bb4bcf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 1.0rc3: *07/03/24: + * Fixed a little bug in fbsetbg (Mark) + util/fbsetbg * Workspace Menu wasn't updating when windows changed titles (Mark) Workspace.cc *07/03/21: diff --git a/util/fbsetbg b/util/fbsetbg index 60118e5..718b19e 100644 --- a/util/fbsetbg +++ b/util/fbsetbg @@ -298,6 +298,8 @@ while [ $# -gt 0 ]; do wallpaper=`grep "|${DISPLAY}$" $lastwallpaper|cut -d'|' -f2` if [ -z "$wallpaper" ]; then option=`grep "|${DISPLAY}.0$" $lastwallpaper|cut -d'|' -f1` + option2=`echo $option|cut -d' ' -f2` + option=`echo $option|cut -d' ' -f1` wallpaper=`grep "|${DISPLAY}.0$" $lastwallpaper|cut -d'|' -f2` fi if [ -z "$wallpaper" ]; then -- cgit v0.11.2