aboutsummaryrefslogtreecommitdiff
path: root/X
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-04-30 15:19:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-04-30 15:19:42 +1200
commit26cbec44eb0d8151b7abfc8757c0f448336f2b9b (patch)
treeb96beffe0bff25b52d51980c750c7d6d159bdc28 /X
parentMove X mouse settings to subscript (diff)
downloaddotfiles-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.sh4
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