Skip to content

Commit

Permalink
Add updated path for ws1HubUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Dec 30, 2024
1 parent a5c83f1 commit 509a302
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ee/allowedcmd/cmd_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,16 @@ func Systemctl(ctx context.Context, arg ...string) (*exec.Cmd, error) {
}

func Ws1HubUtil(ctx context.Context, arg ...string) (*exec.Cmd, error) {
return validatedCommand(ctx, "/opt/vmware/ws1-hub/bin/ws1HubUtil", arg...)
for _, p := range []string{"/usr/bin/ws1HubUtil", "/opt/vmware/ws1-hub/bin/ws1HubUtil"} {
validatedCmd, err := validatedCommand(ctx, p, arg...)
if err != nil {
continue
}

return validatedCmd, nil
}

return nil, errors.New("ws1HubUtil not found")
}

func XdgOpen(ctx context.Context, arg ...string) (*exec.Cmd, error) {
Expand Down

0 comments on commit 509a302

Please sign in to comment.