projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
740c5b2
)
delete old save file when changing the session save file
author
Dana Jansens
<danakj@orodu.net>
Wed, 15 Oct 2003 04:02:38 +0000
(
04:02
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 15 Oct 2003 04:02:38 +0000
(
04:02
+0000)
openbox/session.c
patch
|
blob
|
history
diff --git
a/openbox/session.c
b/openbox/session.c
index 8be44e34c12a99ce4b333a243615d5354cbed37c..651f1a9007a4f0ce3a3db5628da6c4265aee9350 100644
(file)
--- 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),