Okular package cannot print files


#1

I installed the Okular snap from the KDE channel.
Everything works great, but when I try to print a file I get an error:

Could not print the document.
Detailed error is "Could not find a suitable binary for printing. Make sure CUPS lpr binary is available".
Please report to bugs.kde.org

I installed cups-bsd and have the lpr file in /usr/bin/lpr. This is on Linux Mint 18.3.

Any suggestions would be appreciated.


Auto-connecting the cups-control interface for the okular snap
#2

You should report a bug, okular seems to not use the “cups-control” interface


#3

@orga What would be the best place to report a bug? The okular snap page page just directs me to kde.org. Is there a github group with repositories of all the snaps, maybe?


#4

well, the error message above (in your first post) would be what i’d take as authoritative for bug reports …

so bugs.kde.org and looking for the okular page there …


#5

Great, thanks for the link. I’ll file a bug report with kde.


#6

You might also want to suggest the snap’s maintainer that they request auto-connection for that interface (once they’ve added it), similar to what was done for the evince snap.


#7

There is a patch by Harald Sitter which should fix the underlying problem, but it is blocked by another issue with Qt 5.10.

As @oSoMoN said, this will also require getting snap’s maintainers to approve auto-connection for the cups interface.