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:
parent
67658e172c
commit
e8bb4070d9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user