summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbox/debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbox/debug.c b/openbox/debug.c
index 749bc32e..5a976d0c 100644
--- a/openbox/debug.c
+++ b/openbox/debug.c
@@ -48,6 +48,8 @@ void ob_debug_startup(void)
else {
gchar *name = g_build_filename(obt_paths_cache_home(p),
"openbox", "openbox.log", NULL);
+ /* unlink it before opening to remove competition */
+ unlink(name);
log_file = fopen(name, "w");
g_free(name);
}