flatpak / xdg-desktop-portal

Desktop integration portal
https://flatpak.github.io/xdg-desktop-portal/
GNU Lesser General Public License v2.1
594 stars 192 forks source link

flatpak apps see local printer but NOT CUPS printer #341

Open SuffolkPunch opened 5 years ago

SuffolkPunch commented 5 years ago

I'm runing flatpak v 1.4.1-1-xenial in Linux Mint 18.3 Cinnamon 64-bit.

The problem: the official flatpak apps for LibreOffice, Scribus and Gimp all fail to see my CUPS printers, but do see local printers.

Is this a known flatpak issue?

SuffolkPunch commented 5 years ago

Update: debug data from running flatpak gimp.

`flatpak run -v org.gimp.GIMP F: No installations directory in /etc/flatpak/installations.d. Skipping F: Opening system flatpak installation at path /var/lib/flatpak F: Opening user flatpak installation at path /home/mjw/.local/share/flatpak F: Opening user flatpak installation at path /home/mjw/.local/share/flatpak F: Opening system flatpak installation at path /var/lib/flatpak F: Opening user flatpak installation at path /home/mjw/.local/share/flatpak F: Opening system flatpak installation at path /var/lib/flatpak F: Cleaning up unused container id 2243508580 F: Allocated instance id 3680109814 F: Allowing host-fs access F: Allowing x11 access F: Running '/usr/libexec/flatpak-bwrap --args 32 /usr/libexec/flatpak-dbus-proxy --args=34' F: Running '/usr/libexec/flatpak-bwrap --args 32 gimp-2.10' Gtk-Message: 17:12:40.284: Failed to load module "atk-bridge" Gtk-Message: 17:13:03.328: Failed to load module "atk-bridge" Gtk-Message: 17:13:17.382: Failed to load module "atk-bridge"

(print:37): WARNING : 17:13:17.470: Couldn't connect to D-Bus system bus, Could not connect: No such file or directory ` Does this last line (which happens when - in Gimp - I click on 'File > Print') suggest why gimp fails to see my cups printers?

felipeborges commented 5 years ago

I get the same warning while attempting to print with Gimp, but it still works. I can see my Cups printers and I can print to them. I just printed something to verify.

It seems it could be an issue with your local printing management. I run GNOME and my remote printers (remote cups server) were added in gnome-control-center.

hadess commented 5 years ago

GIMP uses GTK 2.x, and likely doesn't use portals for printing at all.

@SuffolkPunch you should file individual bugs for each application on their Flathub pages, as the way they enumerate and access printers is likely different for each one of them, and the problem wouldn't be a generic Flatpak or portal problem.