From 2cc280b643d583e4c33f5d4d850e001a6679b61b Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 23 Aug 2009 23:58:13 +0200 Subject: [PATCH] Remove session when quitting cleanly and it's not loaded at startup --- midori/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/midori/main.c b/midori/main.c index ffbf2b28..6996ccd9 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1984,6 +1984,14 @@ main (int argc, midori_remove_config_file (clear_prefs, MIDORI_CLEAR_TRASH, "tabtrash.xbel"); } + if (katze_object_get_boolean (settings, "load-on-startup") + != MIDORI_STARTUP_LAST_OPEN_PAGES) + { + katze_assign (config_file, build_config_filename ("session.xbel")); + if (is_writable (config_file)) + g_unlink (config_file); + } + g_object_unref (settings); g_object_unref (app); g_free (config_file); -- 2.39.5