Files
packages-arch/plezy-bin/0001-sentry-native-inproc-backend.patch
2026-06-28 11:34:54 -04:00

20 lines
872 B
Diff

diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt
index 29b0af464..721fa7864 100644
--- a/linux/CMakeLists.txt
+++ b/linux/CMakeLists.txt
@@ -81,6 +81,14 @@ set_target_properties(${BINARY_NAME}
)
+# Build sentry-native with the in-process backend instead of crashpad. The
+# crashpad backend forks a handler and calls setsid(), which fails (EPERM) when
+# plezy is launched as a systemd app scope / session leader, tripping a fatal
+# CHECK in crashpad that SIGTRAPs on startup. inproc installs in-process signal
+# handlers and avoids the fork/setsid path. Overrides the plugin's forced
+# SENTRY_BACKEND=crashpad via the env-var escape hatch in sentry-native.cmake.
+set(ENV{SENTRY_NATIVE_BACKEND} "inproc")
+
# Generated plugin build rules, which manage building the plugins and adding
# them to the application.
include(flutter/generated_plugins.cmake)