瀏覽代碼
Merge pull request #26 from dandyhuang/upstream_main
fix: windows support qrcode
main
ztino
5 年前
提交者
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23
共有
1 個檔案被更改,包括
19 行新增 和
19 行删除
-
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" { |
|
|