diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2022-04-30 15:19:42 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2022-04-30 15:19:42 +1200 |
commit | 26cbec44eb0d8151b7abfc8757c0f448336f2b9b (patch) | |
tree | b96beffe0bff25b52d51980c750c7d6d159bdc28 /X | |
parent | Move X mouse settings to subscript (diff) | |
download | dotfiles-26cbec44eb0d8151b7abfc8757c0f448336f2b9b.tar.gz dotfiles-26cbec44eb0d8151b7abfc8757c0f448336f2b9b.zip |
Check and execute ~/.fehbg rather than sourcing it
Diffstat (limited to 'X')
-rw-r--r-- | X/xsession.d/background.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/X/xsession.d/background.sh b/X/xsession.d/background.sh index 85a40889..eba56c98 100644 --- a/X/xsession.d/background.sh +++ b/X/xsession.d/background.sh @@ -1,7 +1,7 @@ # If there's a ~/.fehbg, just run that; otherwise, try to apply a random # background image, if the relevant dir exists -if [ -e "$HOME"/.fehbg ] ; then - sh -- "$HOME"/.fehbg +if [ -x "$HOME"/.fehbg ] ; then + "$HOME"/.fehbg elif [ -d "${XBACKGROUNDS:-"$HOME"/.xbackgrounds}" ] ; then xrbg fi |