[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-print
Subject:    RE: kprinter polling
From:       "Kurt Pfeifle" <kpfeifle () danka ! de>
Date:       2004-12-01 19:14:02
Message-ID: CB8037738D16914993094B6041E5702F0FF996 () dest1-srv-deex1 ! europe ! danka ! com
[Download RAW message or body]

--===============1265334246==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C4D7D9.EB2D50B5"

This is a multi-part message in MIME format.


> -----Original Message-----
> From: Frank Siegert [mailto:hugelmopf@vodafone.de]
> Sent: Wed 12/1/2004 5:55 PM
T> o: For users and developers of KDEPrint, the KDE printing architecture
> Subject: Re: kprinter polling
>  
> I have a new fact:
> When I print via the "lp" command instead of the "kprinter" command, it does 
> not request a connection, although it uses CUPS as well and prints fine.
> 
> (Isn't this a challenge ;-))

Are you sure you looked into the *correct* kdeprintrc and kprinterrc ??
And not an old one, which is't used any more? (See, sometimes an upgrad
from KDE-2.x to KDE-3.x may leave over the old $HOME/.kde directory and
the new $KDEHOME may be now named $HOME/.kde3....)

Test it by changing a setting from the kprinter GUI, and then check
if it gets written into the file.

Next, try to start kprinter from a konsole window and see if you
get any output on stdout (may not be the case, if stripped of all
debugging symbols). 

Then, you could try to run it under "strace" from console.

 * "strace -eopen kprinter" shows you all files kprinter attempts to 
    open. See if there is any network path amongst the verbose output. 
 * "strace -e trace=network kprinter" to trace all the network related 
    system calls. See if that gives some hint.
 * "strace kprinter" shows all system calls kprinter makes. See "man 
    strace" for more detailed explanations and hints, if you are not 
    afraid of it. (Actually, the strace manpage is one of the better 
    ones, providing even examples, yay!)

Last, you can try to the highly secret "kdebugdialog" (Psst!.... never 
tell anybody it exists. I have a plan to sell a few dozen title stories 
to PC Magazine and PC World and the like, once we dominate the desktop, 
which all have variants of the one and only headline "50 more secret 
KDE power tools revealed".) "kdebugdialog should pop up a GUI, which 
lets you select which applications should give debugging output and 
which ones not. If you have the same version as I have, you should 
checkbox "500 kdeprint". (The line on top lets you search via partial 
strings.). Run also "kdebugdialog --help" and "kdebugdialog --fullmode" 
to see if it helps.

> I'd rather keep printing via kprinter though, because it allows for more 
> options (two pages on one etc.) :-)

That's the only reason why you get help here :)

But, hey, the two pages on one sheet is possible from the CUPS 
commandline:

 lp -d printer -o pages-up=2 /path/to/file

;-)   ;-)

> Frank

Cheers,
Kurt

[Attachment #3 (text/html)]

<!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>

_______________________________________________
kde-print mailing list
kde-print@kde.org
https://mail.kde.org/mailman/listinfo/kde-print

--===============1265334246==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic