From 7b7c1982eb5fdd81ef960829d49a2a203032f813 Mon Sep 17 00:00:00 2001 From: cuu Date: Mon, 24 Jun 2019 19:58:40 +0800 Subject: [PATCH] RUNEVT TrimSpace and Split space --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 97bec32..53c7429 100644 --- a/main.go +++ b/main.go @@ -363,7 +363,7 @@ func run() int { gogame.Quit() 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 +="; sync & cd "+UI.GetExePath()+"; "+os.Args[0]+";" fmt.Println(exec_app_cmd)