[rkward] rkward/rbackend: Try absolute (build time) path specification last, when looking up backend executable.
Thomas Friedrichsmeier
null at kde.org
Wed May 2 13:00:16 UTC 2018
Git commit 8f0b64058574988badb21ff9bed5d26bf2c4c8e0 by Thomas Friedrichsmeier.
Committed on 02/05/2018 at 12:58.
Pushed by tfry into branch 'master'.
Try absolute (build time) path specification last, when looking up backend executable.
Fixes problems when build and (test-) deployment are done on the same Mac/Win machine.
M +1 -1 rkward/rbackend/rkfrontendtransmitter.cpp
https://commits.kde.org/rkward/8f0b64058574988badb21ff9bed5d26bf2c4c8e0
diff --git a/rkward/rbackend/rkfrontendtransmitter.cpp b/rkward/rbackend/rkfrontendtransmitter.cpp
index 8195dafb..d72c56aa 100644
--- a/rkward/rbackend/rkfrontendtransmitter.cpp
+++ b/rkward/rbackend/rkfrontendtransmitter.cpp
@@ -106,12 +106,12 @@ void RKFrontendTransmitter::run () {
if (backend_executable.isEmpty ()) backend_executable = findBackendAtPath (QCoreApplication::applicationDirPath () + "../Resources"); // an appropriate location in a standalone app-bundle
#endif
if (backend_executable.isEmpty ()) backend_executable = findBackendAtPath (QCoreApplication::applicationDirPath () + "/rbackend"); // for running directly from the build-dir
- if (backend_executable.isEmpty ()) backend_executable = findBackendAtPath (RKWARD_BACKEND_PATH);
if (backend_executable.isEmpty ()) backend_executable = findBackendAtPath (QCoreApplication::applicationDirPath () + "../lib/libexec");
#ifdef Q_OS_MACOS
if (backend_executable.isEmpty ()) backend_executable = findBackendAtPath (QCoreApplication::applicationDirPath () + "/../../../rbackend");
if (backend_executable.isEmpty ()) backend_executable = findBackendAtPath (QCoreApplication::applicationDirPath () + "/../Frameworks/libexec"); // For running from .dmg created by craft --package rkward
#endif
+ if (backend_executable.isEmpty ()) backend_executable = findBackendAtPath (RKWARD_BACKEND_PATH);
if (backend_executable.isEmpty ()) handleTransmissionError (i18n ("The backend executable could not be found. This is likely to be a problem with your installation."));
QString debugger = RKGlobals::startup_options["backend-debugger"].toString ();
args.prepend (RKCommonFunctions::windowsShellScriptSafeCommand (backend_executable));
More information about the rkward-tracker
mailing list