From: Dana Jansens Date: Wed, 15 Oct 2003 04:02:38 +0000 (+0000) Subject: delete old save file when changing the session save file X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=9b0f5fcde7b7c9f140f831945c9f548d9654e81a;p=chaz%2Fopenbox delete old save file when changing the session save file --- 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),