Dépôt officiel du code source de l'ERP OpenConcerto
/trunk/OpenConcerto/src/org/jopendocument/link/OOInstallation.java |
---|
146,9 → 146,12 |
// MacOS and Linux |
add(cp, ureDir + File.separator + "share" + File.separator + "java"); |
} |
if (basisDir != null) |
if (basisDir != null) { |
add(cp, basisDir + File.separator + "program" + File.separator + "classes"); |
// at least for LO 5.3 on MacOS |
add(cp, basisDir + File.separator + "Resources" + File.separator + "java"); |
} |
} |
private static final void addUnixPaths(final List<File> cp, final File progDir) throws IOException { |
final File baseDir = progDir.getParentFile(); |
286,4 → 289,17 |
e.printStackTrace(); |
} |
} |
/** |
* TODO add methods to call the program, but there's currently a bug preventing from running a |
* headless instance when there's already a running instance : |
* https://bugs.documentfoundation.org/show_bug.cgi?id=37531#c45 |
* https://ask.libreoffice.org/en/question/1686/how-to-not-connect-to-a-running-instance/?answer=1701#post-id-1701 |
* |
* <pre> |
tmpdir=`mktemp -d /tmp/libreoffice-XXXXXXXXXXXX` |
trap "rm -rf $tmpdir" EXIT INT |
libreoffice "-env:UserInstallation=file://$tmpdir" --headless --nolockcheck --convert-to pdf "$out" |
* </pre> |
*/ |
} |