Commit 0f360fad authored by Stefano Crocco's avatar Stefano Crocco Committed by David Faure
Browse files

Enable WebRTCPipeWireCapturer feature for QtWebEngine

This is needed to have screen capture on Wayland using pipewire. It's
optional because it crashes with pipewire-3 unless using a patched
version of QtWebEngine

BUG: 450840
parent 2020b6d4
......@@ -65,6 +65,13 @@ check_symbol_exists(mallinfo "stdlib.h" KDE_MALLINFO_STDL
# TODO KDE_MALLINFO_FIELD_uordblks
# TODO KDE_MALLINFO_FIELD_usmblks
set(WEBENGINEPART_RTC_PIPEWIRE_CAPTURER false CACHE BOOL "Enable rtc pipewire catpure for WebEnginePart")
mark_as_advanced(WEBENGINEPART_RTC_PIPEWIRE_CAPTURER)
if(${WEBENGINEPART_RTC_PIPEWIRE_CAPTURER})
add_compile_definitions(WEBENGINEPART_RTC_PIPEWIRE_CAPTURER=1)
endif()
if(Hunspell_FOUND)
set(WEBENGINEPART_DICTIONARY_DIR ${CMAKE_INSTALL_PREFIX}/share/konqueror/webengine_dictionaries CACHE PATH "The directory where dictionary files for WebEnginePart will be put")
add_compile_definitions(WEBENGINEPART_DICTIONARY_DIR="${WEBENGINEPART_DICTIONARY_DIR}")
......
......@@ -36,6 +36,10 @@ KonquerorApplication::KonquerorApplication(int &argc, char **argv)
qputenv("QTWEBENGINE_DICTIONARIES_PATH", WEBENGINEPART_DICTIONARY_DIR);
}
#endif
#ifdef WEBENGINEPART_RTC_PIPEWIRE_CAPTURER
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--enable-features=WebRTCPipeWireCapturer");
#endif
}
void KonquerorApplication::slotReparseConfiguration()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment