]> Dogcows Code - chaz/openbox/commitdiff
delete old save file when changing the session save file
authorDana Jansens <danakj@orodu.net>
Wed, 15 Oct 2003 04:02:38 +0000 (04:02 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 15 Oct 2003 04:02:38 +0000 (04:02 +0000)
openbox/session.c

index 8be44e34c12a99ce4b333a243615d5354cbed37c..651f1a9007a4f0ce3a3db5628da6c4265aee9350 100644 (file)
@@ -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),
This page took 0.022829 seconds and 4 git commands to generate.