Skip to content

Commit 0d27ffa

Browse files
authored
don't try to find the default browser on macOS (#456)
1 parent bf93a20 commit 0d27ffa

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scripts/ffmprovisr

+1-6
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,12 @@
44
# connected to the Web, and the local version otherwise.
55

66
if [[ "$(uname -s)" = "Darwin" ]] ; then
7-
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)
87
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
98
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
109
else
1110
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
1211
fi
13-
if [[ -n "${default_browser}" ]] ; then
14-
open -b "${default_browser}" "${ffmprovisr_path}"
15-
else
16-
open "${ffmprovisr_path}"
17-
fi
12+
open "${ffmprovisr_path}"
1813
elif [[ "$(uname -s)" = "Linux" ]] ; then
1914
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
2015
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'

0 commit comments

Comments
 (0)