1
0
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:
Chris Cummer 2019-08-28 07:50:04 -07:00 committed by GitHub
commit 7e022fe132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)