From 853e7fe4d14eab1b2bcbcfb5e1c5f0b5958512b9 Mon Sep 17 00:00:00 2001 From: Botspot Date: Mon, 30 Nov 2020 09:21:42 -0600 Subject: [PATCH] chromium detection use command -v --- apps/Boxy SVG/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/Boxy SVG/install b/apps/Boxy SVG/install index f556830..58cc8d2 100755 --- a/apps/Boxy SVG/install +++ b/apps/Boxy SVG/install @@ -10,9 +10,9 @@ function error { git clone https://github.com/Botspot/Boxy-SVG-RPi cd Boxy-SVG-RPi unzip ./boxysvgrpi.zip -if [ -f /usr/bin/chromium-browser ];then +if command -v chromium-browser;then chromium-browser --load-and-launch-app=$(pwd)/boxysvgrpi & -elif [ -f /usr/bin/chromium ];then +elif command -v chromium;then chromium --load-and-launch-app=$(pwd)/boxysvgrpi else error "You must have Chromium Browser installed to use the Boxy SVG Chrome App!"