mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-11 04:52:13 +00:00
printers() ran `lpstat -l -p -d` and `lpstat -e` with no time limit. When the CUPS scheduler stops answering (macOS cupsd stopped serving its local socket in storytold/pdfcraft#6761), both block forever and the Print dialog looks for printers until the app is closed. Both now run through output_within (the bounded wait pdfcraft's lpoptions read already uses): the queues get 15 s, network discovery 10 s. A scheduler that doesn't answer gives an empty list and a warning naming cupsd; discovery that hangs only loses the driverless printers.