[education/rkward] rkward/rbackend: Fix backend library lookup

Thomas Friedrichsmeier null at kde.org
Fri May 10 17:04:24 BST 2024


Git commit 697a5bf7ff17feebf811c44fb9968e11ec104ef9 by Thomas Friedrichsmeier.
Committed on 09/05/2024 at 13:20.
Pushed by tfry into branch 'master'.

Fix backend library lookup

M  +2    -1    rkward/rbackend/rkfrontendtransmitter.cpp

https://invent.kde.org/education/rkward/-/commit/697a5bf7ff17feebf811c44fb9968e11ec104ef9

diff --git a/rkward/rbackend/rkfrontendtransmitter.cpp b/rkward/rbackend/rkfrontendtransmitter.cpp
index adbffeba6..5767eeb2d 100644
--- a/rkward/rbackend/rkfrontendtransmitter.cpp
+++ b/rkward/rbackend/rkfrontendtransmitter.cpp
@@ -159,7 +159,8 @@ void RKFrontendTransmitter::run () {
 
 #if defined(RK_DLOPEN_LIBRSO)
 	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 -> regular install on Linux
+	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()); // backend and lib both installed in libexec or similar
 	env.append(QStringLiteral("RK_BACKEND_LIB=") + backend_lib);
 #endif



More information about the rkward-tracker mailing list