From 3fa270692f23434911cd3d085e6c05b71a2e475d Mon Sep 17 00:00:00 2001 From: j-dimension Date: Thu, 19 Nov 2020 22:23:51 +0100 Subject: [PATCH] version 1.13.0.2 --- j-lawyer-client-installer.install4j | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/j-lawyer-client-installer.install4j b/j-lawyer-client-installer.install4j index e05efee..6ac7eac 100644 --- a/j-lawyer-client-installer.install4j +++ b/j-lawyer-client-installer.install4j @@ -1,7 +1,7 @@ - + @@ -968,7 +968,10 @@ return true; // need to set libreoffice.path so that we can later add it to PATH variable on windows if("install".equalsIgnoreCase((String)context.getVariable("libreoffice.installmode"))) { // default install location is %ProgramFiles%\LibreOffice - String programFiles=WinEnvVars.getenv("ProgramFiles"); + String programFiles="C:\\Program Files"; + if(Util.isWindows()) { + programFiles=WinEnvVars.getenv("ProgramFiles"); + } if(Util.is64BitWindows()) { // need to install 32 Bit LibreOffice due to unoconv not working //programFiles=WinEnvVars.getenv("ProgramFiles(x86)"); @@ -1970,6 +1973,9 @@ update-alternatives --set java /usr/lib64/jvm/jre-1.8.0-openjdk/bin/javacp /opt/j-lawyer-client/j-lawyer-client.desktop /usr/share/applications/j-lawyer-client.desktop update-alternatives --set java /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181.b15-5.fc29.x86_64/jre/bin/java + + +