X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fdebug.c;fp=openbox%2Fdebug.c;h=5a976d0c1910b3c5c634eee336d20d57e7758789;hb=45e2039a58d41a9e104a61232b30cea5d3d2fce6;hp=749bc32e297f4c314b6fc18da66acc6ee5b06d6b;hpb=e0eb926ac20ca0e153c07c377206210c82a8768b;p=chaz%2Fopenbox 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); }