Skip to content

Commit

Permalink
Merge pull request #15 from ensonic/master
Browse files Browse the repository at this point in the history
Ensure that jcef_hlper is executable.
  • Loading branch information
dzikoysk authored Jun 23, 2018
2 parents 5f294c2 + ad96fec commit af26bf9
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,26 @@ private boolean checkNative(File directory) {
else if (PandomiumOS.isLinux()) {
success = success && FileUtils.isIn("cef.pak", directoryContent);
}

// Ensure that 'jcef helper' is executable
String cefHelperName = null;
if (PandomiumOS.isMacOS()) {
cefHelperName = "jcef Helper";
}
else if (PandomiumOS.isWindows()) {
cefHelperName = "jcef_helper.exe";
}
else if (PandomiumOS.isLinux()) {
cefHelperName = "jcef_helper";
}
if (cefHelperName != null) {
for (File file : directoryContent) {
if (file.getName().equals(cefHelperName)) {
file.setExecutable(true);
break;
}
}
}

return success;
}
Expand Down

0 comments on commit af26bf9

Please sign in to comment.