ilstam / FF-Multi-Converter

GUI File Format Converter
https://sites.google.com/site/ffmulticonverter/
GNU General Public License v3.0
83 stars 14 forks source link

office listener remains open after program execution #33

Open ilstam opened 9 years ago

ilstam commented 9 years ago

Before making any document conversions we have got to start an openoffice/libreoffice listener, in order to enable parallel document conversions.

The listener starts just before the first document conversion happens and - for now - it remains open all the time, even after program termination. The problem is that it starts indirectly with an unoconv command ("unoconv --listener") and as a spawned process there's no easy way to kill it.

Actually, it seems like there's no way to kill spawned processes just using python stdlib and for now I don't want to add an extra dependency to the program.

I leave this open for any better future solutions.

ilstam commented 8 years ago

We can consider starting the listener at a specific non-default port: https://github.com/dagwieers/unoconv#start-your-own-unoconv-listener

It's easy then to kill the listener that listens to this port.