|
@ -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" { |
|
|