From e0733f5ce6bc4ffce522c9b4c85d05a891bbd8fe Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Sun, 25 Aug 2019 21:37:10 +0200 Subject: [PATCH] rename hmh.go to main.go and just use open on url instead of open with safari. --- hmhm.go => main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename hmhm.go => main.go (99%) diff --git a/hmhm.go b/main.go similarity index 99% rename from hmhm.go rename to main.go index facdcfb..afce258 100644 --- a/hmhm.go +++ b/main.go @@ -431,7 +431,7 @@ func openbrowser(url string) { case "windows": err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() case "darwin": - err = exec.Command("open", "-a", "Safari", url).Start() + err = exec.Command("open", url).Start() default: err = fmt.Errorf("unsupported platform") }