1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-21 19:26:35 +01:00

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
(cherry picked from commit 02feca74ce)
This commit is contained in:
Antonio Rojas 2022-03-20 14:08:23 +01:00
parent bd5a42fba2
commit 1ef7a6547a

View File

@ -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;