[education/rkward] rkward/rbackend: Fix compilation on Mac

Thomas Friedrichsmeier null at kde.org
Sun Apr 27 09:14:21 BST 2025


Git commit c6a82d347ac83f178d16f2f8be0144c99017daf0 by Thomas Friedrichsmeier.
Committed on 27/04/2025 at 08:14.
Pushed by tfry into branch 'master'.

Fix compilation on Mac

M  +5    -5    rkward/rbackend/rkfrontendtransmitter.cpp

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

diff --git a/rkward/rbackend/rkfrontendtransmitter.cpp b/rkward/rbackend/rkfrontendtransmitter.cpp
index 1c3c64d02..bbac7866a 100644
--- a/rkward/rbackend/rkfrontendtransmitter.cpp
+++ b/rkward/rbackend/rkfrontendtransmitter.cpp
@@ -289,11 +289,11 @@ void RKFrontendTransmitter::run() {
 	// Resolving libR.dylib and friends is a pain on MacOS, and running through R CMD does not always seem to be enough.
 	// (Apparently DYLIB_FALLBACK_LIBRARY_PATH is ignored on newer versions of MacOS). Safest best seems to be to start in the lib directory, itself.
 	QProcess dummy;
-	dummy.start(RKSessionVars::RBinary(), QStringList() << "--slave"
-	                                                    << "--no-save"
-	                                                    << "--no-init-file"
-	                                                    << "-e"
-	                                                    << "cat(R.home('lib'))");
+	dummy.start(RKSessionVars::RBinary(), QStringList() << u"--slave"_s
+	                                                    << u"--no-save"_s
+	                                                    << u"--no-init-file"_s
+	                                                    << u"-e"_s
+	                                                    << u"cat(R.home('lib'))"_s);
 	dummy.waitForFinished();
 	QString r_home = QString::fromLocal8Bit(dummy.readAllStandardOutput());
 	RK_DEBUG(RBACKEND, DL_INFO, "Setting working directory to %s", qPrintable(r_home));


More information about the rkward-tracker mailing list