Files
packages-arch/plezy/0001-sentry-native-inproc-backend.patch
KenwoodFox 133c4e429a
Some checks failed
nightly-build / build (bacula) (push) Successful in 1m23s
nightly-build / build (fchat-horizon-appimage) (push) Successful in 40s
nightly-build / build (openrgb-git) (push) Successful in 1h21m2s
nightly-build / build (paru) (push) Successful in 51s
nightly-build / build (plezy) (push) Failing after 10m39s
nightly-build / build (qownnotes) (push) Successful in 44s
nightly-build / build (ventoy-bin) (push) Successful in 42s
nightly-build / build (visual-studio-code-bin) (push) Successful in 42s
Tweak for plezy
2026-06-29 17:41:24 -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)