Remove session when quitting cleanly and it's not loaded at startup
This commit is contained in:
parent
7124e6f0bf
commit
2cc280b643
1 changed files with 8 additions and 0 deletions
|
@ -1984,6 +1984,14 @@ main (int argc,
|
||||||
midori_remove_config_file (clear_prefs, MIDORI_CLEAR_TRASH, "tabtrash.xbel");
|
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 (settings);
|
||||||
g_object_unref (app);
|
g_object_unref (app);
|
||||||
g_free (config_file);
|
g_free (config_file);
|
||||||
|
|
Loading…
Reference in a new issue