macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.55k stars 682 forks source link

Fix macOS 14 Sonoma printing to use ps2pdf instead #1464

Closed ychin closed 11 months ago

ychin commented 11 months ago

Fix broken printing in macOS 14. It was broken because the OS stopped supporting Postscript and removed the pstopdf tool. Fix the printexpr to detect when pstopdf doesn't exist and try to use ps2pdf instead. This is a third-party tool and it's not guaranteed to exist. If it doesn't exist, give an error prompt for the user to suggest installing Ghostscript first. Settled on this solution as printing is a relatively niche feature and it's not worth spending too much effort fixing this.

Related: