mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS
https://mths.be/dotfiles
MIT License
30.02k stars 8.74k forks source link

FSPathMakeRef(/Applications/Preview.app) failed with error -43 #923

Closed PaulRBerg closed 4 years ago

PaulRBerg commented 4 years ago

Occurred when running the manpdf function. First seen after I upgraded to macOS Catalina.

PaulRBerg commented 4 years ago

It seems that we have to provide a different path when opening native Mac apps. This:

open -a /Applications/Preview.app

Is now this:

open -a /System/Applications/Preview.app

I can also see that the manpdf function is not maintained in this repo anymore. Either my clone of the repo had it or I manually added it at some point. Nonetheless, it's likely that some remaining usages of /Applications have to prefixed with /System.