[rkward] rkward/rbackend: Allow to find backend in .dmg created by craft --package rkward on Mac
Thomas Friedrichsmeier
null at kde.org
Tue Apr 24 10:09:58 UTC 2018
Git commit fd3cd5ef3a14e2d8f8e1a122dbc08a502c89f20c by Thomas Friedrichsmeier.
Committed on 24/04/2018 at 10:09.
Pushed by tfry into branch 'master'.
Allow to find backend in .dmg created by craft --package rkward on Mac
M +5 -4 rkward/rbackend/rkfrontendtransmitter.cpp
https://commits.kde.org/rkward/fd3cd5ef3a14e2d8f8e1a122dbc08a502c89f20c
diff --git a/rkward/rbackend/rkfrontendtransmitter.cpp b/rkward/rbackend/rkfrontendtransmitter.cpp
index 71cbd81d..8195dafb 100644
--- a/rkward/rbackend/rkfrontendtransmitter.cpp
+++ b/rkward/rbackend/rkfrontendtransmitter.cpp
@@ -2,7 +2,7 @@
rkfrontendtransmitter - description
-------------------
begin : Thu Nov 04 2010
- copyright : (C) 2010-2014 by Thomas Friedrichsmeier
+ copyright : (C) 2010-2018 by Thomas Friedrichsmeier
email : thomas.friedrichsmeier at kdemail.net
***************************************************************************/
@@ -103,13 +103,14 @@ void RKFrontendTransmitter::run () {
connect (backend, static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), this, &RKFrontendTransmitter::backendExit);
QString backend_executable = findBackendAtPath (QCoreApplication::applicationDirPath ());
#ifdef Q_OS_MACOS
- if (backend_executable.isNull ()) backend_executable = findBackendAtPath (QCoreApplication::applicationDirPath () + "../Resources"); // an appropriate location in a standalone app-bundle
+ 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.isNull ()) backend_executable = findBackendAtPath (QCoreApplication::applicationDirPath () + "../lib/libexec");
+ 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 () + "/../../../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 ()) 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 ();
More information about the rkward-tracker
mailing list