diff --git a/src/core/Bootstrap.cpp b/src/core/Bootstrap.cpp index e01bf7337..aa359a29b 100644 --- a/src/core/Bootstrap.cpp +++ b/src/core/Bootstrap.cpp @@ -89,7 +89,9 @@ namespace Bootstrap success = success && (setrlimit(RLIMIT_CORE, &limit) == 0); #endif -#if defined(HAVE_PR_SET_DUMPABLE) +// NOTE: Dumps cannot be disabled for snap builds as it prevents desktop portals from working +// See https://github.com/keepassxreboot/keepassxc/issues/7607#issuecomment-1109005206 +#if defined(HAVE_PR_SET_DUMPABLE) && !defined(KEEPASSXC_DIST_SNAP) success = success && (prctl(PR_SET_DUMPABLE, 0) == 0); #endif