You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`/private/var/db/com.apple.xpc.launchd/config/user.plist` and reboot. The
263
+
`/etc/paths` issue can be worked around by duplicating the additional entries
264
+
from `launchctl config … path` in `/etc/paths`. See `man path_helper` for
265
+
details.
266
+
267
+
My personal opinion is that the hardcoding of PATH by launchd is misguided.
268
+
PATH was meant to be a mere convenience for interactive shell use. If a
269
+
security-sensitive system component needs to ensure that a particular binary is
270
+
executed, it should specify that binary using an absolute PATH.
271
+
272
+
Another rant: the fact that `launchtl config user path` has system-wide scope
273
+
and therefore needs sudo privileges is also amusing. If it's called "user" then
274
+
it should be user-specific, not global.
235
275
236
276
## License
237
277
@@ -273,6 +313,8 @@ Terminal.
273
313
274
314
## Acknowledgements
275
315
276
-
Kudos to Jonathan Levin for his [reversing][new_launchd] of the new launchd and launchctl. I used the trial version of the [Hopper Disassembler/debugger for OS X][hopper] to figure out the rest.
316
+
Kudos to Jonathan Levin for his [reversing][new_launchd] of the new launchd and
317
+
launchctl. I used the trial version of the [Hopper Disassembler/debugger for OS
0 commit comments