From ea22d824726325ac17d329b33f3454b79bd252ea Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Wed, 18 Jun 2025 14:55:32 +0200 Subject: [PATCH] printing on osx * bba.org: use ghostscript to generate pdf and open it in default app because Sonoma lost ability to directly print postscript. --- bba.org | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bba.org b/bba.org index b2e1349c..b86e6ce7 100644 --- a/bba.org +++ b/bba.org @@ -172,7 +172,22 @@ from bash. (push "/opt/local/share/info" Info-directory-list))) #+END_SRC +* print on osx +[2025-06-18 Wed 14:44] +#+begin_src sh :tangle ~/bin/lpr-ps + #!/bin/bash + uuid=$(uuidgen) + gs -sDEVICE=pdfwrite -o $TMPDIR/$uuid.pdf - && open $TMPDIR/$uuid.pdf && sleep 1 && rm $TMPDIR/$uuid.pdf +#+end_src + +#+begin_src emacs-lisp + (if (string-equal system-type "darwin") + (if (file-exists-p "~/bin/lpr-ps") + (setq ps-lpr-command "~/bin/lpr-ps") + ) + ) +#+end_src * testing steampipe [2023-04-05 Wed 13:18] -- 2.47.3