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

List:       kde-core-devel
Subject:    A print daemon ? (was: Detaching a KProcess ? Cancelling app exit ?)
From:       Michael Goffioul <goffioul () imec ! be>
Date:       2001-04-30 12:09:21
[Download RAW message or body]

> If the application is just sitting there without any print-specific progress
> dialog, I would not expect that quiting the application at that point would
> have any effect on my ongoing print-job.
> 
> So in that case I would go for detaching unconditionally.

There's still a significant drawback to detaching running print processes:
error report. The main program listens for processes termination and then
report any error. If the main program exits and running processes are
detached, no error report is possible.

Then the idea of a print daemon taking care of print processes. Every print
job can be reduced to a command line (even with preprocessing filters, using
pipes, I'm currently working on it). It's then possible to send the command
string to the print daemon for execution. This daemon can also handle temp
file removal (I still have some problems with that).
This daemon should be rather small, its job only being:
  - to receive print command to execute through a shell, and listen for
    process termination
  - on process termination: report any error through KNotify and/or remove
    any temporary file.

Would it be a good idea ? Thanks for any comment.

Michael.

-- 
------------------------------------------------------------------
Michael Goffioul		IMEC-DESICS-MIRA
e-mail: goffioul@imec.be	(Mixed-Signal and RF Applications)
Tel:    +32/16/28-8510		Kapeldreef, 75
Fax:    +32/16/28-1515		3001 HEVERLEE, BELGIUM
------------------------------------------------------------------

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

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