![]() Registered Member ![]()
|
Now, I have mail filter, that starts java program. This program runs up to 10 seconds and takes a lot of CPU time. While the program is running, the whole Kontact application does not respond on user interface actions.
I want to execute the program in background with increased niceness. Now my commend line to execute from KMail looks like this
But Kontact is still frozen while the program is running. So... how can I detatch my program from KMail or execute it in seperate thread?
pavel, proud to be a member of KDE forums since 2008-Dec.
|
![]() KDE Developer ![]()
|
Maybe the program can be persuaded to work like Spamasssing, i.e. as a separate service where KMail only invokes a small helper program that then communicates with the service?
Cheers, _
anda_skoa, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
My program is simple console program. It should not work like a service (daemon).
pavel, proud to be a member of KDE forums since 2008-Dec.
|
![]() KDE Developer ![]()
|
Hmm, but you are already running it like a service (in the background), just not communicating with it like that.
Anyway, while I can only guess I think KMail already runs the external program in a separate process, but maybe it is waiting for its output and the program is not delivering it? Cheers, _
anda_skoa, proud to be a member of KDE forums since 2008-Oct.
|
Registered users: abc72656, Bing [Bot], Google [Bot], lockheed, Yahoo [Bot]