<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>RE: kprinter polling</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<BR>

<P><TT><FONT SIZE=2>&gt; -----Original Message-----<BR>
&gt; From: Frank Siegert [<A HREF="mailto:hugelmopf@vodafone.de">mailto:hugelmopf@vodafone.de</A>]<BR>
&gt; Sent: Wed 12/1/2004 5:55 PM<BR>
T&gt; o: For users and developers of KDEPrint, the KDE printing architecture<BR>
&gt; Subject: Re: kprinter polling<BR>
&gt;&nbsp;<BR>
&gt; I have a new fact:<BR>
&gt; When I print via the &quot;lp&quot; command instead of the &quot;kprinter&quot; command, it does<BR>
&gt; not request a connection, although it uses CUPS as well and prints fine.<BR>
&gt;<BR>
&gt; (Isn't this a challenge ;-))<BR>
<BR>
Are you sure you looked into the *correct* kdeprintrc and kprinterrc ??<BR>
And not an old one, which is't used any more? (See, sometimes an upgrad<BR>
from KDE-2.x to KDE-3.x may leave over the old $HOME/.kde directory and<BR>
the new $KDEHOME may be now named $HOME/.kde3....)<BR>
<BR>
Test it by changing a setting from the kprinter GUI, and then check<BR>
if it gets written into the file.<BR>
<BR>
Next, try to start kprinter from a konsole window and see if you<BR>
get any output on stdout (may not be the case, if stripped of all<BR>
debugging symbols).<BR>
<BR>
Then, you could try to run it under &quot;strace&quot; from console.<BR>
<BR>
&nbsp;* &quot;strace -eopen kprinter&quot; shows you all files kprinter attempts to<BR>
&nbsp;&nbsp;&nbsp; open. See if there is any network path amongst the verbose output.<BR>
&nbsp;* &quot;strace -e trace=network kprinter&quot; to trace all the network related<BR>
&nbsp;&nbsp;&nbsp; system calls. See if that gives some hint.<BR>
&nbsp;* &quot;strace kprinter&quot; shows all system calls kprinter makes. See &quot;man<BR>
&nbsp;&nbsp;&nbsp; strace&quot; for more detailed explanations and hints, if you are not<BR>
&nbsp;&nbsp;&nbsp; afraid of it. (Actually, the strace manpage is one of the better<BR>
&nbsp;&nbsp;&nbsp; ones, providing even examples, yay!)<BR>
<BR>
Last, you can try to the highly secret &quot;kdebugdialog&quot; (Psst!.... never<BR>
tell anybody it exists. I have a plan to sell a few dozen title stories<BR>
to PC Magazine and PC World and the like, once we dominate the desktop,<BR>
which all have variants of the one and only headline &quot;50 more secret<BR>
KDE power tools revealed&quot;.) &quot;kdebugdialog should pop up a GUI, which<BR>
lets you select which applications should give debugging output and<BR>
which ones not. If you have the same version as I have, you should<BR>
checkbox &quot;500 kdeprint&quot;. (The line on top lets you search via partial<BR>
strings.). Run also &quot;kdebugdialog --help&quot; and &quot;kdebugdialog --fullmode&quot;<BR>
to see if it helps.<BR>
<BR>
&gt; I'd rather keep printing via kprinter though, because it allows for more<BR>
&gt; options (two pages on one etc.) :-)<BR>
<BR>
That's the only reason why you get help here :)<BR>
<BR>
But, hey, the two pages on one sheet is possible from the CUPS<BR>
commandline:<BR>
<BR>
&nbsp;lp -d printer -o pages-up=2 /path/to/file<BR>
<BR>
;-)&nbsp;&nbsp; ;-)<BR>
<BR>
&gt; Frank<BR>
<BR>
Cheers,<BR>
Kurt</FONT></TT>
</P>

</BODY>
</HTML>