Skip to content

Commit

Permalink
[#3133] SingleInstanceData: Fill missing WD as is
Browse files Browse the repository at this point in the history
  • Loading branch information
Vovan-VE committed Dec 23, 2023
1 parent 3c7a218 commit 1f6183d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v2/internal/frontend/desktop/linux/single_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ func SetupSingleInstance(uniqueID string) {
data := options.SecondInstanceData{
Args: os.Args[1:],
}
data.WorkingDirectory, err = os.Getwd()
if err != nil {
return
}

serialized, err := json.Marshal(data)
if err != nil {
return
Expand Down
1 change: 1 addition & 0 deletions v2/internal/frontend/desktop/windows/single_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func SetupSingleInstance(uniqueId string) {
data := options.SecondInstanceData{
Args: os.Args[1:],
}
data.WorkingDirectory, _ = os.Getwd()
serialized, _ := json.Marshal(data)

SendMessage(hwnd, string(serialized))
Expand Down

0 comments on commit 1f6183d

Please sign in to comment.