diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-02-22 23:10:59 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-02-22 23:10:59 +0000 |
| commit | e83bf4f7b72aff7ae8a7968eaf24718fa94dd62b (patch) | |
| tree | 9573049805bfe0914a623a1fecbf578affc32452 /src/Compositor.cpp | |
| parent | c353b7c4f75e53af006bc2cf686b02c9a6495b60 (diff) | |
core: add env to disable crash reporter
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 7 |
1 files 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); |
