delete old save file when changing the session save file
This commit is contained in:
parent
740c5b2a20
commit
9b0f5fcde7
1 changed files with 3 additions and 0 deletions
|
@ -318,6 +318,9 @@ static gboolean session_save()
|
|||
GList *it;
|
||||
gboolean success = TRUE;
|
||||
|
||||
if (save_file)
|
||||
unlink(save_file)
|
||||
|
||||
/* this algo is from metacity */
|
||||
filename = g_strdup_printf("%d-%d-%u.obs",
|
||||
(gint) time(NULL),
|
||||
|
|
Loading…
Reference in a new issue