From f13855a092f121f51a34165ca6a1c2b6d273b451 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Tue, 14 Aug 2012 15:52:36 +0000 Subject: [PATCH] launch xulrunner-bin instead of xulrunner (otherwise does not work with XR 14.0.1) --- src/launcher/kiwix-launcher.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/launcher/kiwix-launcher.cpp b/src/launcher/kiwix-launcher.cpp index 925c9c0..527311b 100644 --- a/src/launcher/kiwix-launcher.cpp +++ b/src/launcher/kiwix-launcher.cpp @@ -32,7 +32,7 @@ int main(int argc, char *argv[]) string env_str = "LD_LIBRARY_PATH=" + ld_path + sep + previous_env; putenv((char *)env_str.c_str()); - string xulrunner_path = computeAbsolutePath(cwd, "xulrunner/xulrunner"); + string xulrunner_path = computeAbsolutePath(cwd, "xulrunner/xulrunner-bin"); string application_ini = computeAbsolutePath(cwd, "application.ini"); // debug prints @@ -44,7 +44,7 @@ int main(int argc, char *argv[]) // exist if xulrunner can't be found if (!fileExists(xulrunner_path)) { - perror("Unable to find xulrunner binary"); + perror("Unable to find xulrunner-bin binary"); return EXIT_FAILURE; } @@ -55,5 +55,5 @@ int main(int argc, char *argv[]) } // execute xulrunner - return execl(xulrunner_path.c_str(), "xulrunner", application_ini.c_str(), argument, NULL); -} \ No newline at end of file + return execl(xulrunner_path.c_str(), "xulrunner-bin", application_ini.c_str(), argument, NULL); +}