728x90
반응형

시스템 환경설정 > 개인 정보 보호 > 전체 디스크 접근 권한에 Emacs 앱을 추가했지만

홈 디렉토리를 제외한 문서, 다운로드 등의 디렉토리 접근이 불가능했다.

 

이유는 Emacs가 ruby로 실행되기 때문이었다.

 

전체 디스크 접근 권한/usr/bin/ruby를 추가하면 모든 디렉토리에 접근할 수 있다.

Emacs is built on various versions of Mac OS X: 10.6, 10.7 and 10.9 as of this writing.
The 10.6 builds also build 32-bit and PowerPC binaries
(only Emacs 24 builds PowerPC—Emacs dropped support for it in Emacs 25).
The later OSes only build 64-bit builds.
All the binaries are combined into a single executable
and a small Ruby launcher chooses which binary to run
based on the machine's OS and architecture.

usr 디렉토리가 안보이는 경우 Command + Shift + .을 입력하면 숨겨진 디렉토리가 나온다.

 

참고 문헌

  1. https://emacs.stackexchange.com/questions/53026/how-to-restore-file-system-access-in-macos-catalina

  2. https://github.com/caldwell/build-emacs/blob/master/launch.rb

반응형

+ Recent posts