Me too: "Kprinter has stopped working - Unable tostartchildprintprocess"

Goffioul Michael goffioul at imec.be
Tue Jan 30 13:27:34 CET 2007


> Good idea. But trying it only proofs in a different way, that 
> the "dcop kded kdeprintd print" call fails:
> 
> 
>   (a) if "/tmp/debug.txt" does already exist:
> 
>       dcop kded kdeprintd print "touch" '(' "/tmp/debug.txt" ')' false
> 
>       Error message pops up, see below (*) for its content.

Use something like:

dcop kded kdeprintd print "touch /tmp/debug.txt" '(' "/tmp/debug2.txt"
')' false

where /tmp/debug.txt does not exists and /tmp/debug2.txt exists. What's
happening internally is that:
1) kdeprint checks the existence and readability of the files given as
second argument
2) kdeprint builds the command to execute by taking the first argument
and replacing the tag "$out" with the list of files given as second
argument; then it executes the command
3) kdeprint removes the files given as second argument if the 3rd
argument
is true

So, for the command above, step 1 will succeed. And if step 2 also
succeeds
the file /tmp/debug.txt should be created.

Michael.


More information about the kde-print mailing list