From c324aed044dda5dca80228f07799c8b2358f26dd Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Mon, 29 Mar 2021 16:27:54 +0200 Subject: [PATCH] fix for firefox as default browser in template --- configs/appcfg/xinit_template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/appcfg/xinit_template b/configs/appcfg/xinit_template index 76570aa..47ddf8b 100644 --- a/configs/appcfg/xinit_template +++ b/configs/appcfg/xinit_template @@ -42,8 +42,8 @@ mpv --quiet --no-video /usr/share/sxmo/startup.wav & # Note that this is just a subset of all available # parameters, see the sxmo documentation for more. -# Use firefox as default browser -[ -z "$BROWSER" ] && export BROWSER=firefox +# Use firefox as default browser if installed +command -v firefox && export BROWSER=firefox # Prepopulate Subreddits menu with custom subreddits #export SXMO_SUBREDDITS="postmarketos pinephoneOfficial pinephone unixporn"