Windows doesn't have SysProcAttr
This commit is contained in:
9
cmd/syncthing/openurl_windows.go
Normal file
9
cmd/syncthing/openurl_windows.go
Normal file
@@ -0,0 +1,9 @@
|
||||
// +build windows
|
||||
|
||||
package main
|
||||
|
||||
import "os/exec"
|
||||
|
||||
func openURL(url string) error {
|
||||
return exec.Command("cmd.exe", "/C", "start "+url).Run()
|
||||
}
|
||||
Reference in New Issue
Block a user