Skip to content

Commit

Permalink
Fix issue with darwin
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Pickering <[email protected]>
  • Loading branch information
adamkpickering committed Mar 1, 2023
1 parent 84c41bf commit 3aad632
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/go/rdctl/pkg/autostart/autostart_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,9 @@ func EnsureAutostart(autostartDesired bool) error {
}

func getDesiredLaunchAgentFileContents() ([]byte, error) {
// get path to main Rancher Desktop executable
rdctlPath, err := os.Executable()
if err != nil {
return []byte{}, fmt.Errorf("failed to get path to rdctl: %w", err)
}
rancherDesktopPath, err := utils.GetRDPath()
if err != nil {
return []byte{}, errors.New("failed to get path to main Rancher Desktop executable: %w", err)
return []byte{}, fmt.Errorf("failed to get path to main Rancher Desktop executable: %w", err)
}

// get desired contents of LaunchAgent file
Expand Down

0 comments on commit 3aad632

Please sign in to comment.