From: Christian Dywan Date: Sun, 23 Aug 2009 21:58:13 +0000 (+0200) Subject: Remove session when quitting cleanly and it's not loaded at startup X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cc280b643d583e4c33f5d4d850e001a6679b61b;p=midori Remove session when quitting cleanly and it's not loaded at startup --- 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);