[Kde-imaging] thought by packaging...

Aurélien Gâteau aurelien.gateau at free.fr
Wed Dec 17 23:33:17 CET 2008


Angelo Naselli wrote:
>  
>> I am a bit confused. What is this temporary dir? if it's created by the 
>> plugin, the plugin should delete it itself when it's no longer needed. 
> I'd say yes, but here two examples in which that is not possible (at
> least i believe), the first is printassistant, it saves pictures into a temporary
> directory to pass them to gimp. The latter is sendimage it uses a temporary
> dir in which put files to be sent. In both cases the related plugin cannot handle
> the external process to understand when to delete temporary files. The result
> is that the file lay down on your system forever. Try it :)
> If tried to put autodelete option, but on my machine that always does not work
> or better it deletes files before the applications have received them...

Oh I see. One solution is to use the KRun methods which take a tempFiles 
boolean, like KRun::processDesktopExec() or KRun::run().  Another 
solution is to do what KRun does: call your process with "kioexec 
--tempfiles".

> Angelo (who has not finished with his home yet)

Those are never finished, believe me :)

Aurélien


More information about the Kde-imaging mailing list