3
0
Fork 0

+ fix xulrunner detection code

small_fixes
Kelson42 12 years ago
parent 5c13508401
commit 1950b29fc8

@ -47,7 +47,7 @@ int main(int argc, char *argv[]) {
/* Find xulrunner binary path */ /* Find xulrunner binary path */
string xulrunnerPath = computeAbsolutePath(xulrunnerDirectory, "xulrunner-bin"); string xulrunnerPath = computeAbsolutePath(xulrunnerDirectory, "xulrunner-bin");
if (!fileExists(xulrunnerPath)) { if (!fileExists(xulrunnerPath)) {
xulrunnerPath = computeAbsolutePath(executableDirectory, "xulrunner"); xulrunnerPath = computeAbsolutePath(xulrunnerDirectory, "xulrunner");
if (!fileExists(xulrunnerPath)) { if (!fileExists(xulrunnerPath)) {
perror("Unable to find neither the 'xulrunner-bin' nor the 'xulrunner' binary"); perror("Unable to find neither the 'xulrunner-bin' nor the 'xulrunner' binary");
return EXIT_FAILURE; return EXIT_FAILURE;

Loading…
Cancel
Save