1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46: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
This commit is contained in:
Antonio Rojas 2022-03-20 14:08:23 +01:00
parent e9e1d32339
commit 02feca74ce

View File

@ -151,6 +151,10 @@ MainApplication::MainApplication(int &argc, char** argv)
} }
#endif #endif
QByteArray flags = qgetenv("QTWEBENGINE_CHROMIUM_FLAGS");
flags.append(" --enable-features=WebRTCPipeWireCapturer");
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", flags);
QUrl startUrl; QUrl startUrl;
QString startProfile; QString startProfile;
QStringList messages; QStringList messages;