browse-url: Use open in macOS without specifying location

This commit is contained in:
Michiel Borkent 2021-05-15 23:22:02 +02:00
parent 69e58440ab
commit a832b85ab5

View file

@ -21,7 +21,7 @@
(if-let [script (-> open-url-script deref deref)] (if-let [script (-> open-url-script deref deref)]
(sh script url) (sh script url)
(case os (case os
:mac (sh "/usr/bin/open" url) :mac (sh "open" url)
:linux (sh "xdg-open" url) :linux (sh "xdg-open" url)
:windows (sh "cmd" "/C" "start" url))))) :windows (sh "cmd" "/C" "start" url)))))