Print preview error on Debian KDE

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
Farry
Posts: 6
Joined: Sun Nov 29, 2009 11:18 pm

Print preview error on Debian KDE

Postby Farry » Mon Dec 28, 2015 6:54 am

With Inkscape 0.48.5 on a fresh install of Debian 8.2 KDE, if I open the print dialogue and then select "print preview", I get the message:

"Error launching preview. No application is registered as handling this file."

I presume that since KDE is less popular than Gnome for Debian, Inkscape is looking for something that's not installed by default with the KDE desktop. How does Inkscape look for an application for the print-preview?

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Print preview error on Debian KDE

Postby brynn » Mon Dec 28, 2015 7:04 am

Is it looking for printing software? Do you have a printer connected to the system?

Farry
Posts: 6
Joined: Sun Nov 29, 2009 11:18 pm

Re: Print preview error on Debian KDE

Postby Farry » Mon Dec 28, 2015 7:35 am

brynn wrote:Is it looking for printing software? Do you have a printer connected to the system?
I do have a printer, an HP Deskjet 3050, and the printing works fine (with the wrong margin size because I have no working preview to check beforehand).
Last edited by Farry on Mon Dec 28, 2015 7:37 am, edited 1 time in total.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Print preview error on Debian KDE

Postby ~suv » Mon Dec 28, 2015 7:36 am

Farry wrote:How does Inkscape look for an application for the print-preview?

Inkscape itself does nothing special - the application which gets called by the 'Print Preview' command in the GTK2 Print dialog is managed via standard GTK2 settings ( gtk-print-preview-command ), and is not configurable from within Inkscape.

I do not know whether KDE / Qt-based Linux Desktops attempt to override this setting, or ship/install gtksettings with a custom default command (for which you possibly miss some dependencies (?)).

Farry
Posts: 6
Joined: Sun Nov 29, 2009 11:18 pm

Re: Print preview error on Debian KDE

Postby Farry » Mon Dec 28, 2015 7:51 am

~suv wrote:... the application which gets called by the 'Print Preview' command in the GTK2 Print dialog is managed via standard GTK2 settings ( gtk-print-preview-command ), and is ...
Googling "KDE gtk-print-preview-command" took me to:

https://bugs.launchpad.net/ubuntu/+sour ... bug/243233

... which told me that the bug had previously been found on Kubuntu. It seem that KDE (version 4, at least) does not handle gtk-print-preview-command. The fix was given there in the comments:

Add the line: gtk-print-preview-command="okular %f"
to the file: ~/.kde/share/config/gtkrc-2.0

And that works.

Thanks. problem solved for me.


Return to “Discuss Software Issues”