<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Just a
reminder - kprinter works fine for me if I call it as root.<br>
<br>
Is that, by any chance, the same for you?&nbsp; If so, isn't that a clue as
to what is happening?<br>
<br>
All the best<br>
<br>
<br>
Andrew<br>
<br>
<br>
<br>
</font></font><br>
Kurt Pfeifle wrote:
<blockquote cite="mid200701291751.19662.k1pfeifle@gmx.net" type="cite">
  <pre wrap="">On Monday 29 January 2007 12:18, Goffioul Michael wrote:
        &gt; &gt; &gt; Is it possible that the kdeprintd daemon (kded module) 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">isn't able to 
      </pre>
      <blockquote type="cite">
        <pre wrap="">start a child process anymore? Is it possible for you to "talk"
directly to the module to see if it behaves correctly?
(it used to be possible with "dcop kded kdeprintd")
        </pre>
      </blockquote>
      <pre wrap="">Yes. I'm not at the office, but I phoned them in the 
afternoon. They said "dcop kded kdeprintd openPassDlg root" 
opened a password dialog.
      </pre>
    </blockquote>
    <pre wrap="">Could you try the "print" command on the kdeprintd module?
This command has the following syntax:

print(QString cmd, QStringList files, bool remove_flag)

cmd: the command to execute, it could be any command
files: a list of files that will replace any "$out" tag in the command
remove_flag: a flag specifying if the "files" should be removed
after command completion

So, in theory, you should be able to do:

print("ls -l", QStringList(), false)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I didn't quite understand how to provide the full dcop command syntax
on the command line:

 kurt@~&gt; dcop kded kdeprintd print "ls -l" "/home/kurt/" "false"
 Not enough arguments.

 kurt@~&gt; dcop kded kdeprintd 'print("ls -l", "/home/kurt/", "false")'
 Not enough arguments.

 kurt@~&gt; dcop kded kdeprintd print("ls -l", /home/kurt/*, false)
 bash: syntax error near unexpected token `('

 kurt@~&gt; dcop kded kdeprintd print\("ls -l", /home/kurt/*, false\)
 parentheses do not match
 

Next, I tried to get it done with the GUI, kdcop. Started kdcop,
manouvered to "kded --&gt; kdeprintd" and filled in the dialog 
accordingly (command: ls -l; files: /home/kurt). This didn't do 
anything else than write a "-1" into the lower white field labeled 
as "Returned data type: int". I assume this just means that the
return code was "not successfull".

Last, I created a file that I could risk loosing:

  kurt@~&gt; echo "testtesttest" &gt; /tmp/kdeprint.txt

Then I filled in the same kdcop dialog as above accordingly
(command: ls -l; files: /tmp/kdeprint.txt; remove: enabled).

This time, the "-1" return code is the same -- but the newly
created file /tmp/kdeprint.txt was indeed removed after the
dcop call had executed!

So it looks, part of the command succeeds, and part doesn't.




_______________________________________________
kde-print mailing list
<a class="moz-txt-link-abbreviated" href="mailto:kde-print@kde.org">kde-print@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/kde-print">https://mail.kde.org/mailman/listinfo/kde-print</a>

  </pre>
</blockquote>
</body>
</html>