Skip to content

Commit

Permalink
fix: 修复一些已知问题
Browse files Browse the repository at this point in the history
  • Loading branch information
feng626 committed Aug 11, 2022
1 parent 687d6f6 commit 507902b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions go-client/pkg/awaken/awaken.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package awaken
import (
"encoding/json"
"fmt"
"go-client/global"
"io/ioutil"
"os"
"path/filepath"
Expand Down Expand Up @@ -63,10 +64,9 @@ func (r *Rouse) HandleRDP() {
filePath := filepath.Join(filepath.Dir(os.Args[0]), r.Info.FileName+".rdp")
err := ioutil.WriteFile(filePath, []byte(r.Info.Config), os.ModePerm)
if err != nil {
fmt.Println("write file failed, err:", err)
global.LOG.Error(err.Error())
return
}

cmd := handleRDP(filePath)
cmd.Run()
}
Expand Down
2 changes: 1 addition & 1 deletion go-client/pkg/awaken/awaken_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func awakenCommand(command string) *exec.Cmd {
fmt.Sprintf("%s; exec bash -i", command),
)
case "deepin":
cmd = exec.Command("deepin-terminal", "-C", command)
cmd = exec.Command("deepin-terminal", "--keep-open", "-C", command)
default:
msg := fmt.Sprintf("Not yet supported %s desktop system", currentDesktop)
global.LOG.Info(msg)
Expand Down

0 comments on commit 507902b

Please sign in to comment.