[Kde-print-devel] [Bug 125342] Preview in a GNOME desktop causes invalid "text/plain" MIME-TYPE request for evince

Michael Goffioul kdeprint_bugs at swing.be
Wed Apr 12 16:37:19 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=125342         




------- Additional Comments From kdeprint_bugs swing be  2006-04-12 16:37 -------
Actually, an external viewer can be started by kdeprint if:
1) no PS viewer component (KParts) could be loaded
2) an external preview program has been specified in the kdeprint settings

The preview component searching involves:
1) detect mimetype of the file to preview
2) if PS
  2a) using KTrader, looking for KParts/ReadOnlyPart that handle application/postscript
  2b) look for libkghostviewpart
3) using KServiceTypeProfile::preferredService, look for a PS viewe app

What would be interesting is to catch the file that evince is trying to view and check if it's correct PS or not. This file exists as long as the preview is not closed. If the error message from evince doesn't tell which file it's viewing, you should be able to find it somewhere in the KDE temporary directory. This temp dir might depend on your settings, but look in /tmp/kde-xxxxx/ or ~/.kde/tmp. The kdeprint temporary file has the name kdeprint.XXXXXXX. If you find it, please post it to the bug report.

Michael.


More information about the Kde-print-devel mailing list