aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-08 13:34:34 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-08 13:34:34 +0200
commitf698922eeea11e4089d746d3529a819897defee4 (patch)
tree5e84a0193f79029a98f5ccab7c89b336ff4b8b91 /lib/configuration
parentFix wiping current directory when deleting off-the-record profiles (diff)
downloadsmolbote-f698922eeea11e4089d746d3529a819897defee4.tar.xz
Disable Chromium crash handler
Chromium's crash handler prevents breakpad from creating crashdumps. - add browser.crash.path: set minidump location - add browser.crash.handler: call this program after crashing
Diffstat (limited to 'lib/configuration')
-rw-r--r--lib/configuration/configuration.cpp3
-rw-r--r--lib/configuration/defaults.h.in1
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp
index 0898c09..48acecf 100644
--- a/lib/configuration/configuration.cpp
+++ b/lib/configuration/configuration.cpp
@@ -55,6 +55,9 @@ Configuration::Configuration(QObject *parent)
("browser.locale", po::value<std::string>(), "Set Qt localization.")
("browser.translation", po::value<std::string>(), "Set application localization.")
+ ("browser.crash.path", po::value<std::string>()->default_value(CrashdumpPath))
+ ("browser.crash.handler", po::value<std::string>())
+
// main window ui
("mainwindow.height", po::value<int>()->default_value(720))
("mainwindow.width", po::value<int>()->default_value(1280))
diff --git a/lib/configuration/defaults.h.in b/lib/configuration/defaults.h.in
index 8c4b334..f239b14 100644
--- a/lib/configuration/defaults.h.in
+++ b/lib/configuration/defaults.h.in
@@ -2,6 +2,7 @@
#define SMOLBOTE_DEFAULTS
#cmakedefine ConfigPath "@ConfigPath@"
+#cmakedefine CrashdumpPath "@CrashdumpPath@"
#cmakedefine FilterPath "@FilterPath@"
#cmakedefine PluginsPath "@PluginsPath@"