1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

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 <hsw@ms2.hinet.net>
This commit is contained in:
Christopher Hall 2019-08-28 11:33:28 +08:00
parent 67658e172c
commit e8bb4070d9

View File

@ -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)