[gnome-settings-daemon] Say how to keep the log file from being created



commit 8341ba25a6a38c952707cbad577610434c59c980
Author: Federico Mena Quintero <federico novell com>
Date:   Wed Sep 8 11:49:48 2010 -0500

    Say how to keep the log file from being created
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 plugins/xrandr/gsd-xrandr-manager.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index 0f4dee8..0aef5de 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -158,6 +158,9 @@ log_open (void)
 
         log_file = fopen (log_filename, "a");
 
+        if (log_file && ftell (log_file) == 0)
+                fprintf (log_file, "To keep this log from being created, please rm ~/gsd-debug-randr\n");
+
 out:
         g_free (toggle_filename);
         g_free (log_filename);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]