Running more than one instance of Evince

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)

+3
source share
3 answers

Wouter Bolsterlee offers :

dbus-launch -exit-with-session evince File: // ...

+1
source

You cannot do this with evince. Try to offer developers a new feature.

0
source

It looks like the version that comes with Ubuntu Lucid (2.30) works for my use ... Maybe they changed their mind :)

0
source

Source: https://habr.com/ru/post/1706580/


All Articles