Commit 93a1b098 authored by Stefano Crocco's avatar Stefano Crocco
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
(cherry picked from commit 0f360fad)
parent 6756a00a
......@@ -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()
......
Markdown is supported
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