summaryrefslogtreecommitdiff
path: root/openbox/session.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-15 04:02:38 +0000
committerDana Jansens <danakj@orodu.net>2003-10-15 04:02:38 +0000
commit9b0f5fcde7b7c9f140f831945c9f548d9654e81a (patch)
tree8ea8de1a31b62ec4b4bc499588a0a51e707896cc /openbox/session.c
parent740c5b2a20d5110435d0874f8cc6a4c9dfd14777 (diff)
delete old save file when changing the session save file
Diffstat (limited to 'openbox/session.c')
-rw-r--r--openbox/session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/session.c b/openbox/session.c
index 8be44e34..651f1a90 100644
--- a/openbox/session.c
+++ b/openbox/session.c
@@ -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),