Skip to content

Commit

Permalink
if openoffice has been installed alongside libreoffice
Browse files Browse the repository at this point in the history
if openoffice has not succeeded in overriding the soffice symlink pointing at libreoffice,
this will be a problem for our launch script, so let's force update the symlink to point at openoffice
  • Loading branch information
JohnRDOrazio committed Dec 17, 2020
1 parent 5c0b6f8 commit 8869c48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/io/bibleget/BibleGetFirstInstallFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,13 @@ protected Void doInBackground() throws Exception {
//SymLink is already pointing at launch.sh!
} else {
BibleGetIO.sofficeLaunchSymlink = realPath.toString();
if(BibleGetIO.sofficeLaunchSymlink.contains("libreoffice")){
//openoffice did not succeed in updating the symlink!
//let us force update the symlink to point to openoffice
if(Files.exists(Paths.get("/opt/openoffice4/program/soffice") ) ){
BibleGetIO.sofficeLaunchSymlink = "/opt/openoffice4/program/soffice";
}
}
}
}
} else {
Expand Down

0 comments on commit 8869c48

Please sign in to comment.