diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2022-04-27 23:02:23 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2022-04-27 23:06:34 +1200 |
commit | 6ab0494c925f449449b2b5fc8d6c1766adc8ecd0 (patch) | |
tree | cb2b358cc94378e624ce109684c65b5e74cb4fee /X | |
parent | Use more elegant stdout/stderr blocking (diff) | |
download | dotfiles-6ab0494c925f449449b2b5fc8d6c1766adc8ecd0.tar.gz dotfiles-6ab0494c925f449449b2b5fc8d6c1766adc8ecd0.zip |
Save checking Firefox/LibreWolf existence twice
Diffstat (limited to 'X')
-rw-r--r-- | X/xsession.d/browser.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/X/xsession.d/browser.sh b/X/xsession.d/browser.sh index 44afc78e..dde8c784 100644 --- a/X/xsession.d/browser.sh +++ b/X/xsession.d/browser.sh @@ -11,8 +11,8 @@ fi >/dev/null 2>&1 if ( # Don't switch if it's not there command -v dillo || exit 1 - # Do switch if neither LibreWolf nor Firefox are there - command -v librewolf || command -v firefox || exit 0 + # Do switch if BROWSER= isn't set yet + [ -n "$BROWSER" ] || exit 0 # Do switch if procfs says we have less than 2GB of RAM awk '$1=="MemTotal:"&&$2<2^20{m++}END{exit!m}' < /proc/meminfo ) ; then |