Printing from Firefox Flatpak


I have the flatpak for Firefox installed and I get the printer dialog which pops up to select my printer. But when I click okay and try to print it just puts the rendered file in /home/username/.var/app/org.mozilla.firefox/cache/tmp/gtkprint{random} and doesn’t actually print it. I was wondering if anyone else has this problem, I was thinking it was a portal issue but that seems to be fine as the gtk pritner selection screen comes up and I can see my printers.

I would like to be able to print directly from my flatpak installed firefox instead of having to take two to three steps to get a print job.

Any suggestions on how to troubleshoot or fix this would be great. I’m pretty new to flatpaks.



Do you have xdg-desktop-portal and GTK or KDE implementation installed? I believe it’s portals job to make the printing happen.

@barthalion – I am having the identical problem printing from Firefox 79.0/Flatpak 1.0 as Rich, and accumulating …cache/tmp/gtkprint* files just as he described. Attempting to Print To File (PDF) also defaults to saving the PDF in the …cache/tmp/ folder as well (but that, at least, can be changed to, say, ~/Downloads.) I require the Firefox 79.0 flatpak because version 68.11 currently available in the Debian repos does not support Zoom for job interviews. (I am a COVID-19 casualty.)

Printing seems to proceed normally, except the printer never sees the jobs (“No active jobs.”) Removing the printer and re-detecting and adding it back to the devices list has no effect.

In answer to your question, yes, I have the following xdg support modules installed.

~$ sudo apt list xdg-* | grep installed
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
xdg-dbus-proxy/stable,now 0.1.1-1 amd64 [installed,automatic]
xdg-desktop-portal-gtk/stable,now 1.2.0-1 amd64 [installed,automatic]
xdg-desktop-portal/stable,now 1.2.0-1 amd64 [installed,automatic]
xdg-user-dirs-gtk/stable,now 0.10-3 amd64 [installed]
xdg-user-dirs/stable,now 0.17-2 amd64 [installed,automatic]
xdg-utils/stable,now 1.1.3-1+deb10u1 all [installed,automatic]

If you can provide instructions for getting diagnostic information, I will be happy to comply.
:~$ lsb_release -ds ; uname -srm ; gnome-shell --version ; echo $XDG_SESSION_TYPE
Debian GNU/Linux 10 (buster)
Linux 4.19.0-10-amd64 x86_64
GNOME Shell 3.30.2


I will double check this but I believe that I have them installed. Sorry I didn’t see this show up in my notifications.

I thought I had fixed this by changing the type of printer I was using from ppd to a new format. But that worked till I rebooted my computer. Once my computer rebooted, I was back to square one with the print jobs just going back into the Firefox tmp folder in my user.

Same as @rtimai I would be happy to do any troubleshooting.

I’m running
Fedora 32 - Gnome Shell - Wayland

I’m not using Firefox for printing, but if you’ve Flatseal installed, you can see that Firefox flatpak doesn’t have access to CUPS service by default. You haven’t mentioned allowing CUPS access so that might be something you might need to check.

I have since removed Firefox 79.0 flatpak, but no, I was using “HP Deskjet 1110 Series hpijs-ppds 3.18.12” (for Deskjet-1112) at localhost with a USB connector, which is the automatically selected driver. CUPS is installed by default in Debian 10, but the CUPS driver is not selected. I do think this may be a xdg-desktop issue, as I have seen other posts describing printing fails from other flatpak applications as well.