Ver código fonte
Merge pull request #26 from dandyhuang/upstream_main
fix: windows support qrcode
main
ztino
5 anos atrás
committed by
GitHub
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados
ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com
19 adições e
19 exclusões
-
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" { |
|
|
|
|