Comment 8 for bug 889735

Revision history for this message
dag (dag-wieers) wrote : Re: [Bug 889735] Re: unoconv using deprecated LibreOffice switches

On Wed, 11 Jan 2012, A. Bram Neijt wrote:

> I'd have to take some time to fork the code, but why not use something
> like:
>
> import os
> def isLibreOffice(binaryPath):
> return "libre" in os.path.realpath(binaryPath).lower()
>
> print "is libre", isLibreOffice("/usr/bin/soffice")
>
> I have not tested this on Windows, but it should help fix the errors on
> my system at least ;) Post a comment if you want me to take the time to
> convert this into a patch on github.

This does not help, because older LibreOffice versions did not complain
either, and do not accept long options, so you will break those.

If you want to do this, you have to query the UNO interface to get the
name/version and then based on both provide the correct options. And while
you're there, you might as well improve the options based on the
capabilities of the version.

Again, is it worth the trouble ?

--
-- dag wieers, <email address hidden>, http://dag.wieers.com/
-- dagit linux solutions, <email address hidden>, http://dagit.net/

[Any errors in spelling, tact or fact are transmission errors]