Skip to content

Commit

Permalink
fix: windows mobaxterm不能多开
Browse files Browse the repository at this point in the history
  • Loading branch information
Halo1236 committed Sep 25, 2024
1 parent 4387e2e commit be13bef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go-client/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"download_url": "https://mobaxterm.mobatek.net/download-home-edition.html",
"type": "linux",
"path": "",
"arg_format": "-newtab * sshpass -p{value} ssh -o StrictHostKeyChecking=no {username}@{host} -p{port}",
"arg_format": "-newtab*sshpass -p{value} ssh -o StrictHostKeyChecking=no {username}@{host} -p{port}",
"match_first": [],
"is_internal": false,
"is_default": false,
Expand Down
2 changes: 1 addition & 1 deletion go-client/pkg/awaken/awaken_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func handleSSH(r *Rouse, cfg *config.AppConfig) *exec.Cmd {
commands := getCommandFromArgs(connectMap, appItem.ArgFormat)
if strings.Contains(commands, "*") {
commands := strings.Split(commands, "*")
return exec.Command(appPath, commands...)
return exec.Command(appPath, commands[0], commands[1])
} else {
commands := strings.Split(commands, " ")
return exec.Command(appPath, commands...)
Expand Down

0 comments on commit be13bef

Please sign in to comment.