aboutsummaryrefslogtreecommitdiff
path: root/X
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-05-01 00:53:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-05-01 00:53:03 +1200
commita9e10125c5b215c61eda6c82dc2f2044b686ee18 (patch)
treef2770f785bb03992dfa4d6678a85183174afdd49 /X
parentHandle monitor and wallpaper setup with config (diff)
downloaddotfiles-a9e10125c5b215c61eda6c82dc2f2044b686ee18.tar.gz
dotfiles-a9e10125c5b215c61eda6c82dc2f2044b686ee18.zip
Only export BROWSER if it's not empty
Diffstat (limited to 'X')
-rw-r--r--X/xsession.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/X/xsession.sh b/X/xsession.sh
index ccc3a343..9c0dcab7 100644
--- a/X/xsession.sh
+++ b/X/xsession.sh
@@ -37,7 +37,9 @@ if command -v librewolf >/dev/null 2>&1 ; then
elif command -v firefox >/dev/null 2>&1 ; then
BROWSER=firefox
fi
-export BROWSER
+if [ -n "$BROWSER" ] ; then
+ export BROWSER
+fi
# Load all supplementary scripts in ~/.xsession.d
for sh in "$HOME"/.xsession.d/*.sh ; do