Browse Source
Merge pull request #26 from dandyhuang/upstream_main
fix: windows support qrcode
main
ztino
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
19 additions and
19 deletions
-
common/lib.go
|
|
@ -97,7 +97,7 @@ func Exists(path string) bool { |
|
|
|
|
|
|
|
func OpenImage(file string) { |
|
|
|
if runtime.GOOS == "windows" { |
|
|
|
cmd:=exec.Command("start",file) |
|
|
|
cmd := exec.Command("cmd", "/k", "start", file) |
|
|
|
_ = cmd.Start() |
|
|
|
} else { |
|
|
|
if runtime.GOOS == "linux" { |
|
|
|