Skip to content

Commit be13bef

Browse files
committed
fix: windows mobaxterm不能多开
1 parent 4387e2e commit be13bef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: go-client/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"download_url": "https://mobaxterm.mobatek.net/download-home-edition.html",
7777
"type": "linux",
7878
"path": "",
79-
"arg_format": "-newtab * sshpass -p{value} ssh -o StrictHostKeyChecking=no {username}@{host} -p{port}",
79+
"arg_format": "-newtab*sshpass -p{value} ssh -o StrictHostKeyChecking=no {username}@{host} -p{port}",
8080
"match_first": [],
8181
"is_internal": false,
8282
"is_default": false,

Diff for: go-client/pkg/awaken/awaken_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func handleSSH(r *Rouse, cfg *config.AppConfig) *exec.Cmd {
7272
commands := getCommandFromArgs(connectMap, appItem.ArgFormat)
7373
if strings.Contains(commands, "*") {
7474
commands := strings.Split(commands, "*")
75-
return exec.Command(appPath, commands...)
75+
return exec.Command(appPath, commands[0], commands[1])
7676
} else {
7777
commands := strings.Split(commands, " ")
7878
return exec.Command(appPath, commands...)

0 commit comments

Comments
 (0)