From 3aad632b9f5768f03c41e2c52eb50880fc7751a5 Mon Sep 17 00:00:00 2001 From: Adam Pickering Date: Wed, 1 Mar 2023 10:29:04 -0700 Subject: [PATCH] Fix issue with darwin Signed-off-by: Adam Pickering --- src/go/rdctl/pkg/autostart/autostart_darwin.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/go/rdctl/pkg/autostart/autostart_darwin.go b/src/go/rdctl/pkg/autostart/autostart_darwin.go index 32c82353f99..e686382a5f8 100644 --- a/src/go/rdctl/pkg/autostart/autostart_darwin.go +++ b/src/go/rdctl/pkg/autostart/autostart_darwin.go @@ -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