omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Printing breaks after the Nautilus → Files migration: the pacman -Rns cascade removes ghostscript

Open isc opened this issue 3 weeks ago • 0 comments

System details

Apple MacBook Air (M1, 2020), Omarchy Mac edition, omarchy-dev 4.0.0.r7708.g748fa3c-1, kernel 7.2.11-16-1-ARCH, cups 2.4.20, cups-filters 2.0.1, HP DeskJet 3700 as a driverless IPP printer (final format image/urf)

What's wrong?

After today's update, nothing prints on a driverless (IPP Everywhere / AirPrint) printer. The printer shows as idle, jobs stay in the queue, and every one of them fails in CUPS with:

cfFilterGhostscript: Unable to launch Ghostscript: gs: No such file or directory
gstoraster filter failed.
Job stopped due to filter errors; please consult the /var/log/cups/error_log file for details.

Cause

ghostscript isn't in install/omarchy-base.packages, and it's still missing on quattro. It was only on the system as a transitive dependency of Nautilus:

nautilus -> localsearch -> libmediainfo -> graphviz -> ghostscript

Migration 1794330979.sh ("Replace Nautilus with Files") calls omarchy-pkg-drop nautilus nautilus-python nautilus-dropbox sushi, which runs pacman -Rns. The -s cascade removed 47 packages that nothing required anymore, and ghostscript was one of them. From pacman.log:

[PACMAN] Running 'pacman -Rns --noconfirm nautilus nautilus-python sushi'
[ALPM] removed graphviz (16.1.1-1)
[ALPM] removed ghostscript (10.08.0-1)

poppler is still installed, but that doesn't save printing. For application/vnd.cups-pdf to image/urf / image/pwg-raster, cups-filters gives gstoraster cost 99 and pdftoraster cost 100, so CUPS keeps picking gstoraster even though gs is gone.

Nothing else on this system requires ghostscript (pacman -Qi ghostscript shows Required By: None), so fresh installs from the current package list are probably affected as well.

Steps to reproduce

  1. Set up a driverless printer in CUPS on a system that still has Nautilus.
  2. Update so that migration 1794330979.sh runs.
  3. lp some.pdf leaves the job queued, and /var/log/cups/error_log shows gs: No such file or directory.

Workaround

sudo pacman -S --asexplicit ghostscript
lp -i <printer>-<job-id> -H restart

Suggested fix

Add ghostscript to install/omarchy-base.packages next to cups-filters, plus a migration that installs it on systems that already ran 1794330979.sh.

Other packages removed by the same cascade that may or may not be intended: graphviz, papers, xdg-user-dirs.

I couldn't attach omarchy-debug output: the command isn't available on the Mac edition (#17249).

isc avatar Nov 11 '26 12:11 isc