Print preview is missing

2 risposte [Ultimo contenuto]
Avron

I am a translator!

Offline
Iscritto: 08/18/2020

On one Trisquel computer that I installed recently, in atril or in gthumb, regardless of the choice of the printer, including choosing to print in a file, clicking on "preview" just closes the print window and nothing else happens.

I wonder whether any package is missing, or how to fix this. Printing works though, but it is annoying not to have a preview.

Avron

I am a translator!

Offline
Iscritto: 08/18/2020

Installing evince installed libeview3-3a and libevdocument3-4. Print preview works in evince while it still does not work in atril (so I did set evince as the default app). Surprise, print preview now also works with gthumb.

prospero
Offline
Iscritto: 05/20/2022

It looks like evince is set as default for print previews in gtksettings:
https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtksettings.c?ref_type=heads#L64

Creating a settings.ini file in ~/.config/gtk-3.0 with the following content corrected the situation in Trisquel 11 with MATE:
[Settings]
gtk-print-preview-command=atril --unlink-tempfile --preview --print-settings %s %f