22

I found that my PATH on my MacBook Pro running Mac OS Ventura 13.0.1 has a strange directory inside all of the normal ones, i.e. /opt/homebrew/bin:/usr/local/bin:XXX:/usr/bin:/bin:/usr/sbin:/sbin:

/System/Cryptexes/App/usr/bin is inserted into my PATH at the point with XXX

As noted from the command: echo $PATH

  1. Where is it coming from?
  2. Is it safe to keep?
  3. Is it okay to remove from PATH?
l3v1tat3
  • 223
  • 1
  • 1
  • 4

2 Answers2

17

Where is it coming from?
Is it safe to keep?
Is it okay to remove from PATH?

/System/Cryptexes is part of macOS security. Mostly Safari and a few other features use it.

So it came from Apple, it is safe to keep, and if you don't use anything in there it is likley safe to remove.

James Risner
  • 1,143
  • 2
  • 4
  • 18
  • 2
    Thanks for that link. That definitely helped curb my curiosity. I will probably leave it as it isn't really hurting anything. – l3v1tat3 Nov 18 '22 at 19:16
  • That specific PATH entry is the location of ```safaridriver```, which is used for browser testing with Selenium. – RCross Jan 06 '23 at 08:20
  • @RCross could you clarify what path you are referring? Are you suggesting Apple ships a Selenium component? – James Risner Jan 06 '23 at 09:21
3
  1. Where is it coming from?

from: /etc/paths

Solid explanation of /etc/paths file and /etc/paths.d directory