From 02feca74ce5497db466a6c547a320a4f23425ac4 Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Sun, 20 Mar 2022 14:08:23 +0100 Subject: [PATCH] Enable WebRTC screen capturer in WebEngine This is disabled by default, and without it screen sharing doesn't work on Wayland Port of https://invent.kde.org/network/konqueror/-/merge_requests/113 BUG: 450839 --- src/lib/app/mainapplication.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/app/mainapplication.cpp b/src/lib/app/mainapplication.cpp index 88d78709b..3bc3df6c4 100644 --- a/src/lib/app/mainapplication.cpp +++ b/src/lib/app/mainapplication.cpp @@ -151,6 +151,10 @@ MainApplication::MainApplication(int &argc, char** argv) } #endif + QByteArray flags = qgetenv("QTWEBENGINE_CHROMIUM_FLAGS"); + flags.append(" --enable-features=WebRTCPipeWireCapturer"); + qputenv("QTWEBENGINE_CHROMIUM_FLAGS", flags); + QUrl startUrl; QString startProfile; QStringList messages;