From e8bb4070d9a3ee9ec1b87d90662193ba88698735 Mon Sep 17 00:00:00 2001 From: Christopher Hall Date: Wed, 28 Aug 2019 11:33:28 +0800 Subject: [PATCH] use xdg-open as default open method for http/https This should be available on all BSD and similar OSs Signed-off-by: Christopher Hall --- utils/utils.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/utils.go b/utils/utils.go index 8e4878df..4ba579ad 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -102,6 +102,8 @@ func OpenFile(path string) { case "darwin": exec.Command("open", path).Start() default: + // for the BSDs + exec.Command("xdg-open", path).Start() } } else { filePath, _ := ExpandHomeDir(path)