diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2022-05-06 17:06:07 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2022-05-06 23:54:41 +1200 |
commit | 8536c0a17d68e7f94a37866e793ce0d0b8eeb5b9 (patch) | |
tree | 7ac7c37afe2861304322c302f625bd1464a85f67 /sh/profile.d | |
parent | Remove keychain target; no longer using it (diff) | |
download | dotfiles-8536c0a17d68e7f94a37866e793ce0d0b8eeb5b9.tar.gz dotfiles-8536c0a17d68e7f94a37866e793ce0d0b8eeb5b9.zip |
Lean on Debian alternatives system a bit more
I'll refactor this if I ever need to (i.e. if I end up running X on
something other than Debian a lot).
Diffstat (limited to 'sh/profile.d')
-rw-r--r-- | sh/profile.d/browser.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sh/profile.d/browser.sh b/sh/profile.d/browser.sh index ee94857c..ce18e127 100644 --- a/sh/profile.d/browser.sh +++ b/sh/profile.d/browser.sh @@ -1,4 +1,10 @@ -# Set command-line browser to lynx; ~/.xsession will change this to something -# graphical instead if invoked -BROWSER=lynx +# Set command-line browser to Debian's alternatives name www-browser, or +# failing that, just to `lynx`; ~/.xsession will change this to something +# graphical instead if invoked. +# +if command -v www-browser >/dev/null 2>&1 ; then + BROWSER=www-browser +else + BROWSER=lynx +fi export BROWSER |