[education/rkward] rkward/rbackend: Try to make detection of backend lib more robust
Thomas Friedrichsmeier
null at kde.org
Thu Jun 20 14:31:15 BST 2024
Git commit c44905cf9440a64bf68500b584e1d314f7540dc2 by Thomas Friedrichsmeier.
Committed on 20/06/2024 at 13:31.
Pushed by tfry into branch 'master'.
Try to make detection of backend lib more robust
M +1 -1 rkward/rbackend/rkfrontendtransmitter.cpp
https://invent.kde.org/education/rkward/-/commit/c44905cf9440a64bf68500b584e1d314f7540dc2
diff --git a/rkward/rbackend/rkfrontendtransmitter.cpp b/rkward/rbackend/rkfrontendtransmitter.cpp
index f78fb6c6a..76c954249 100644
--- a/rkward/rbackend/rkfrontendtransmitter.cpp
+++ b/rkward/rbackend/rkfrontendtransmitter.cpp
@@ -224,7 +224,7 @@ void RKFrontendTransmitter::run () {
/** NOTE: For a description of the rationale for this involved loading procedure rkapi.h ! */
QString backend_lib = findBackendLibAtPath(QCoreApplication::applicationDirPath()); // for running directly from the build tree, but also covers windows
if (backend_lib.isEmpty()) backend_lib = findBackendLibAtPath(QCoreApplication::applicationDirPath() + "/../lib"); // covers rkward in /usr[/local]/bin and lib in /usr/[/local]/lib
- // but also backend in /usr/lib/libexec and lib in /usr/lib-> regular install on Linux
+ if (backend_lib.isEmpty()) backend_lib = findBackendLibAtPath(QFileInfo(backend_executable).absolutePath() + "/../lib"); // backend in /usr/lib/libexec and lib in /usr/lib-> regular install on Linux
if (backend_lib.isEmpty()) backend_lib = findBackendLibAtPath(QFileInfo(backend_executable).absolutePath()); // backend and lib both installed in libexec or similar
# if defined(Q_OS_WIN) || defined(Q_OS_MACOS)
env.append(QStringLiteral("RK_BACKEND_LIB=") + backend_lib);
More information about the rkward-tracker
mailing list