Commit 27c64c00 authored by Vincent Pinon's avatar Vincent Pinon
Browse files

Try catching application initialization crashes

parent 579812c9
......@@ -49,6 +49,9 @@
int main(int argc, char *argv[])
{
#ifdef USE_DRMINGW
ExcHndlInit();
#endif
// Force QDomDocument to use a deterministic XML attribute order
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
qSetGlobalQHashSeed(0);
......@@ -66,6 +69,10 @@ int main(int argc, char *argv[])
QCoreApplication::setAttribute(Qt::AA_X11InitThreads);
#endif
#ifdef KF5_USE_CRASH
KCrash::initialize();
#endif
#ifdef Q_OS_WIN
qputenv("KDE_FORK_SLAVES", "1");
#endif
......@@ -151,12 +158,6 @@ int main(int argc, char *argv[])
parser.process(app);
aboutData.processCommandLine(&parser);
#ifdef USE_DRMINGW
ExcHndlInit();
#elif defined(KF5_USE_CRASH)
KCrash::initialize();
#endif
QString clipsToLoad = parser.value(QStringLiteral("i"));
QString mltPath = parser.value(QStringLiteral("mlt-path"));
if (parser.value(QStringLiteral("mlt-log")) == QStringLiteral("verbose")) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment