mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-12 16:08:52 +01:00
RUNEVT TrimSpace and Split space
This commit is contained in:
parent
0833c64b9d
commit
7b7c1982eb
2
main.go
2
main.go
@ -363,7 +363,7 @@ func run() int {
|
|||||||
gogame.Quit()
|
gogame.Quit()
|
||||||
|
|
||||||
fmt.Println("RUNEVT")
|
fmt.Println("RUNEVT")
|
||||||
exec_app_cmd := "cd " + filepath.Dir(ev.Data["Msg"])+";"
|
exec_app_cmd := "cd " + filepath.Dir( strings.Split(strings.TrimSpace(ev.Data["Msg"]), " ")[0] )+";"
|
||||||
exec_app_cmd += ev.Data["Msg"]
|
exec_app_cmd += ev.Data["Msg"]
|
||||||
exec_app_cmd +="; sync & cd "+UI.GetExePath()+"; "+os.Args[0]+";"
|
exec_app_cmd +="; sync & cd "+UI.GetExePath()+"; "+os.Args[0]+";"
|
||||||
fmt.Println(exec_app_cmd)
|
fmt.Println(exec_app_cmd)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user