]> git.pld-linux.org Git - packages/libreoffice.git/blob - jvm-path.patch
fix jre detection when using single jvm path
[packages/libreoffice.git] / jvm-path.patch
1 --- libreoffice-7.5.1.2/jvmfwk/plugins/sunmajor/pluginlib/util.cxx.orig 2023-02-22 20:52:27.000000000 +0100
2 +++ libreoffice-7.5.1.2/jvmfwk/plugins/sunmajor/pluginlib/util.cxx      2023-03-11 21:48:38.572214374 +0100
3 @@ -460,6 +460,11 @@
4          if(sHomeProperty.equals(sKey))
5          {
6              sVal = homePath + "/jre";
7 +            DirectoryItem jreDirItem;
8 +            if (DirectoryItem::get(homePath + "/jre", jreDirItem) == File::E_None)
9 +                sVal = homePath + "/jre";
10 +            else
11 +                sVal = homePath;
12          }
13  #endif
14  
This page took 0.046288 seconds and 3 git commands to generate.