Skip to content

Commit a04cd28

Browse files
committed
desktop/runner: restore darwin's runAsUser reason for launchctl runas
1 parent 6b48b14 commit a04cd28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ee/desktop/runner/runner_darwin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
)
1818

1919
// Starts the provided cmd and returns any errors from spawning the process. If the uid differs from the user
20-
// running the current process, runAsUser uses launchctl runas to start cmd in user context. Otherwise it runs the cmd
21-
// directly.
20+
// running the current process, runAsUser uses `launchctl runas` to start cmd in the user's context (required for
21+
// notifications to work). Otherwise it runs cmd directly.
2222
func (r *DesktopUsersProcessesRunner) runAsUser(ctx context.Context, uid string, cmd *allowedcmd.TracedCmd) error {
2323
_, span := observability.StartSpan(ctx, "uid", uid)
2424
defer span.End()

0 commit comments

Comments
 (0)