Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS 14 Sonoma printing to use ps2pdf instead #1464

Merged
merged 1 commit into from
Dec 9, 2023

Commits on Dec 9, 2023

  1. Fix macOS 14 Sonoma printing to use ps2pdf instead

    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:
    - macvim-dev#1390 / macvim-dev#1347: macOS 13 Ventura broke printing by removing Preview
      support for PostScript. The fix was to use `pstopdf`, which eventually
      got removed in macOS 14.
    ychin committed Dec 9, 2023
    Configuration menu
    Copy the full SHA
    25b6728 View commit details
    Browse the repository at this point in the history