- Old OS X had X11 binaries under
/usr/bin
(and XQuartz circa 2016) - Modern OS X has
/usr/bin
protected and unmodifiable - XQuartz installs the files under
/opt/X11/bin
/usr/libexec/path_helper -s
puts/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
at the top of thePATH
variable
- Put symlinks of files under
/opt/X11/bin
to/usr/local/bin
- This will prevent old unusable X11 images in
/usr/bin
being executed
- Note:
/usr/local/bin
must be writable by the executing user
/bin/ls -1 /opt/X11/bin/ | \
awk "{print \"ln -s /opt/X11/bin/\" \$1 \" /usr/local/bin/\" \$1;}" | \
sh
[End of document]