From e83bf4f7b72aff7ae8a7968eaf24718fa94dd62b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 22 Feb 2024 23:10:59 +0000 Subject: [PATCH] core: add env to disable crash reporter --- src/Compositor.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index c2deeacf..3976dee9 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -99,8 +99,11 @@ void CCompositor::initServer() { // register crit signal handler wl_event_loop_add_signal(m_sWLEventLoop, SIGTERM, handleCritSignal, nullptr); - signal(SIGSEGV, handleUnrecoverableSignal); - signal(SIGABRT, handleUnrecoverableSignal); + + if (!envEnabled("HYPRLAND_NO_CRASHREPORTER")) { + signal(SIGSEGV, handleUnrecoverableSignal); + signal(SIGABRT, handleUnrecoverableSignal); + } signal(SIGUSR1, handleUserSignal); initManagers(STAGE_PRIORITY);