[education/rkward] rkward: Workaround for QWebEngineProcess not loading (MacOS)
Thomas Friedrichsmeier
null at kde.org
Fri Jul 5 21:28:17 BST 2024
Git commit 28582bb54babce8cfcb397cc3c2bc0612da3fe11 by Thomas Friedrichsmeier.
Committed on 05/07/2024 at 20:28.
Pushed by tfry into branch 'master'.
Workaround for QWebEngineProcess not loading (MacOS)
M +7 -0 rkward/main.cpp
https://invent.kde.org/education/rkward/-/commit/28582bb54babce8cfcb397cc3c2bc0612da3fe11
diff --git a/rkward/main.cpp b/rkward/main.cpp
index 0bf8af8d8..5de62c43b 100644
--- a/rkward/main.cpp
+++ b/rkward/main.cpp
@@ -141,6 +141,13 @@ void RKDebug (int flags, int level, const char *fmt, ...) {
int main (int argc, char *argv[]) {
RK_Debug::RK_Debug_Level = DL_WARNING;
+#if defined(Q_OS_MACOS)
+ // TODO: This is just a hackish workaround. See https://invent.kde.org/education/rkward/-/issues/28
+ auto chromiumflags = QStringLiteral("QTWEBENGINE_CHROMIUM_FLAGS");
+ if (!qEnvironmentVariableIsSet(chromiumflags)) {)
+ qputenv(chromimumflags, "--no-sandbox --single-process --enable-features=NetworkServiceInProcess");
+ }
+#endif
// annoyingly, QWebEngineUrlSchemes have to be registered before creating the app.
QWebEngineUrlScheme scheme("help");
scheme.setSyntax(QWebEngineUrlScheme::Syntax::Path);
More information about the rkward-tracker
mailing list