]> Dogcows Code - chaz/openbox/blobdiff - openbox/session.c
delete old save file when changing the session save file
[chaz/openbox] / 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.028426 seconds and 4 git commands to generate.