Skip to content

Commit

Permalink
Ensure that jcef_hlper is executable.
Browse files Browse the repository at this point in the history
If not we only get a black screen and a "LaunchProcess: failed to execvp:".
Fixes dzikoysk#13
  • Loading branch information
ensonic committed Jun 23, 2018
1 parent 5f294c2 commit ad96fec
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 ad96fec

Please sign in to comment.