From 0d27ffa5d1ab321a585db5f388bc6f4e7ea0f682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A8=D7=98=D7=95=20=E2=80=A2=20Reto?= Date: Fri, 13 Aug 2021 19:53:57 +0200 Subject: [PATCH] don't try to find the default browser on macOS (#456) --- scripts/ffmprovisr | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/ffmprovisr b/scripts/ffmprovisr index 71a4362..140820e 100755 --- a/scripts/ffmprovisr +++ b/scripts/ffmprovisr @@ -4,17 +4,12 @@ # connected to the Web, and the local version otherwise. if [[ "$(uname -s)" = "Darwin" ]] ; then - default_browser=$(plutil -convert json ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist -r -o - | grep https -b1 | tail -n1 | cut -d'"' -f4) if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/' else ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1) fi - if [[ -n "${default_browser}" ]] ; then - open -b "${default_browser}" "${ffmprovisr_path}" - else - open "${ffmprovisr_path}" - fi + open "${ffmprovisr_path}" elif [[ "$(uname -s)" = "Linux" ]] ; then if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'