[education/rkward] rkward/rbackend: Fix relative lookup of backend

Thomas Friedrichsmeier null at kde.org
Fri Jul 5 16:51:58 BST 2024


Git commit cb269c6a045e523e7197d55c953c233ba3ec475c by Thomas Friedrichsmeier.
Committed on 05/07/2024 at 15:51.
Pushed by tfry into branch 'master'.

Fix relative lookup of backend

M  +4    -0    rkward/rbackend/rkfrontendtransmitter.cpp

https://invent.kde.org/education/rkward/-/commit/cb269c6a045e523e7197d55c953c233ba3ec475c

diff --git a/rkward/rbackend/rkfrontendtransmitter.cpp b/rkward/rbackend/rkfrontendtransmitter.cpp
index 019386352..8ea9fc488 100644
--- a/rkward/rbackend/rkfrontendtransmitter.cpp
+++ b/rkward/rbackend/rkfrontendtransmitter.cpp
@@ -250,7 +250,11 @@ void RKFrontendTransmitter::run () {
 	// On MacOS, we cd to R_HOME, instead, below
 	QFileInfo bfi(backend_executable);
 	backend->setWorkingDirectory(bfi.absolutePath());
+#	ifdef Q_OS_WIN
 	args.append(bfi.fileName());
+#	else
+	args.append("./" + bfi.fileName());
+#	endif
 #else
 	args.append(backend_executable);
 #endif


More information about the rkward-tracker mailing list