all repos — fluxbox @ 4fb8e18d03191fce1e291f3d98b4d39050512daf

custom fork of the fluxbox windowmanager

Fix missing sanitycheck as found by Tom Ryan
fluxgen fluxgen
commit

4fb8e18d03191fce1e291f3d98b4d39050512daf

parent

7e3de640c5fc386ec7b64ca333ad534b93d00dd7

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M util/fbsetbgutil/fbsetbg

@@ -23,7 +23,7 @@ # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,

# 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.28 2004/01/17 01:29:40 fluxgen Exp $ +# $Id: fbsetbg,v 1.29 2004/01/22 05:48:41 fluxgen Exp $ # Portability notes: # To guarantee this script works on all platforms that support fluxbox

@@ -312,7 +312,9 @@ done

# Find the default wallpapersetter if [ "$setterfromcommandline" != true ]; then - wpsetters="`awk '/wpsetters/ {print $2}' $lastwallpaper` $wpsetters" + if [ -r "$lastwallpaper" ]; then + wpsetters="`awk '/wpsetters/ {print $2}' $lastwallpaper` $wpsetters" + fi for wpsetter in $wpsetters; do if find_it $wpsetter; then WPSETTER=$wpsetter