From 96c7da471a5a3c771714f78db87c357873d64816 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Sat, 8 Jun 2019 00:27:29 +0200 Subject: Remove _argv0 from Inkscape::Application Currently it was only used as the least preferred (and therefore effectively unused) location where to store the crash backup. However it wasn't set properly since 408cb49b5559a81ea803df64bf58457a5dd4bf16 causing assertion errors while crashing. On top of that argv0 is not a reliable way to determine the path to the currently running executable anyway. Fixes https://gitlab.com/inkscape/inkscape/issues/176 --- src/inkscape-application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inkscape-application.cpp') diff --git a/src/inkscape-application.cpp b/src/inkscape-application.cpp index 4e31f8751..031f93bd6 100644 --- a/src/inkscape-application.cpp +++ b/src/inkscape-application.cpp @@ -569,7 +569,7 @@ template<> void ConcreteInkscapeApplication::on_startup2() { - Inkscape::Application::create(nullptr, false); + Inkscape::Application::create(false); } #ifdef GDK_WINDOWING_QUARTZ @@ -582,7 +582,7 @@ void ConcreteInkscapeApplication::on_startup2() { // This should be completely rewritten. - Inkscape::Application::create(nullptr, _with_gui); // argv appears to not be used. + Inkscape::Application::create(_with_gui); if (!_with_gui) { return; -- cgit v1.2.3