Browse Source

fix: windows support qrcode

main
dandyhuang 4 years ago
parent
commit
6bf82e853f
  1. 2
      common/lib.go

2
common/lib.go

@ -97,7 +97,7 @@ func Exists(path string) bool {
func OpenImage(file string) { func OpenImage(file string) {
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
cmd:=exec.Command("start",file) cmd := exec.Command("cmd", "/k", "start", file)
_ = cmd.Start() _ = cmd.Start()
} else { } else {
if runtime.GOOS == "linux" { if runtime.GOOS == "linux" {

Loading…
Cancel
Save