Bug 245545

Summary: graphics/evince: Missing print dialogs in 3.28.5_13
Product: Ports & Packages Reporter: Conrad Meyer <cem>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: New ---    
Severity: Affects Only Me CC: rhurlin
Priority: --- Flags: bugzilla: maintainer-feedback? (gnome)
Version: Latest   
Hardware: Any   
OS: Any   

Description Conrad Meyer freebsd_committer freebsd_triage 2020-04-11 22:05:21 UTC
The evince print dialogue no longer works in 3.28.5_13.  Previously I had 3.28.5_8, but I cannot explain why the former worked and the latter does not.  I updated the rest of ports at the same time, so it is possibly some other dependency that is the root cause (gtk3 seems most likely).

Regardless, attempting to print a PDF produces no user visible response.  On a console, the following message is printed:

  (evince:90654): Gtk-WARNING **: 15:01:28.786: GtkPrintOperation::create-custom-widget not supported with portal

It seems that GTK has invented some sandboxing mechanism called "portals," and evince now runs in this mode (or something like that).  The mechanism is supposed to have a print service listening on DBUS, provided by the xdg-desktop-portal-gtk software.  Unfortunately, we do not seem to have xdg-desktop-portal-gtk in FreeBSD ports at this time, and evince (gtk?) is missing a dependency on that service.
Comment 1 Conrad Meyer freebsd_committer freebsd_triage 2020-04-11 22:06:22 UTC
https://github.com/flatpak/xdg-desktop-portal-gtk
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2020-09-26 20:37:50 UTC
I upgraded evince to a recent version can you check if it fixes the issue for you ?
Comment 3 Conrad Meyer freebsd_committer freebsd_triage 2020-09-27 17:45:22 UTC
I think it's less an evince thing than a missing xdg portal port?  But I can give it a try.

BEFORE

$ evince --version
GNOME Document Viewer 3.28.5
$ pkg info evince
evince-3.28.5_18
Name           : evince
Version        : 3.28.5_18
Installed on   : Tue Sep 22 17:11:45 2020 PDT

Same problem:
(evince:79397): Gtk-WARNING **: 10:20:04.151: GtkPrintOperation::create-custom-widget not supported with portal

I do not see a newer pkg yet, although there's a newer one in ports.  Ok, let's try that (default config).

AFTER

$ pkg info evince
evince-3.36.7

Same thing:
(evince:82994): Gtk-WARNING **: 10:39:48.886: GtkPrintOperation::create-custom-widget not supported with portal

Again, I think the thing we're missing here is xdg-desktop-portal-gtk, not an evince update.