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, d...@wieers.com, http://dag.wieers.com/
-- dagit linux solutions, i...@dagit.net, http://dagit.net/

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/889735

Title:
  unoconv using deprecated LibreOffice switches

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unoconv/+bug/889735/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to