mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Merge pull request #541 from hxw/master
use xdg-open as default open method for http/https
This commit is contained in:
commit
7e022fe132
@ -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