[fix] make PipeWire and portal dependencies optional

This commit is contained in:
dijunkun
2026-04-28 17:08:34 +08:00
parent 15cce07b6e
commit b7a031bb7f
6 changed files with 230 additions and 65 deletions
@@ -57,6 +57,11 @@ int ScreenCapturerWayland::Init(const int fps, cb_desktop_data cb) {
return -1;
}
if (!EnsurePipeWireRuntimeAvailable()) {
LOG_ERROR("Wayland screen capturer requires PipeWire 0.3 runtime");
return -1;
}
fps_ = fps;
callback_ = cb;
pointer_granted_ = false;