From c704b8fed573a696959f54b686e0cc5b4d354556 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Fri, 31 Jul 2020 09:08:07 +0200 Subject: [PATCH] Fix .xsessionrc --- .xsessionrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.xsessionrc b/.xsessionrc index 2531ea7..5483ac1 100755 --- a/.xsessionrc +++ b/.xsessionrc @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash if [[ "$DESKTOP_SESSION" = "dwm" ]]; then export _JAVA_AWT_WM_NONREPARENTING=1 @@ -15,8 +15,10 @@ if [[ "$DESKTOP_SESSION" = "dwm" ]]; then if test -f /usr/share/backgrounds/gnome/Road.jpg ; then feh --bg-scale /usr/share/backgrounds/gnome/Road.jpg & - else if test -f /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg ; then - feh --bg-scale /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg & + else + if test -f /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg ; then + feh --bg-scale /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg & + fi fi fi