I have a wxPython application and I use Evince to display the reports that it creates. Since I would like to delete every report after the user has closed the corresponding Evince instance, my application uses a thread that executes subprocess.call () to call Evince and then deletes the report when the subprocess terminates. This works great if the user views only one report at a time, because if he opens one report and then another (without closing the previous one), the previous Evince instance gets “reworked” to show the new report, therefore a subprocess. call () returns immediately and the file will be deleted too soon.
Is there a way to get Evince to use a new instance every time?
(Xubuntu 8.10)
Joril source
share