[gnome-shell] Don't print useless error message when app monitor config file does not exist



commit 4ef655ffcebe15a69ff1ca82ac35996e7b387f79
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Mon May 4 19:35:29 2009 +0200

    Don't print useless error message when app monitor config file does not exist
    
    This warning was printed even when app monitoring was disabled. It's not needed anyay since we'll warn on saving if an error occurs.
---
 src/shell-app-monitor.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/shell-app-monitor.c b/src/shell-app-monitor.c
index 63e7218..1ba1d9d 100644
--- a/src/shell-app-monitor.c
+++ b/src/shell-app-monitor.c
@@ -913,10 +913,9 @@ restore_from_file (ShellAppMonitor *monitor)
   input = g_file_read (monitor->configfile, NULL, &error);
   if (error)
     {
-      if (error->code == G_IO_ERROR_NOT_FOUND)
-        g_message ("No applications usage data file found. This is normal if you start the program for the first time.");
-      else
+      if (error->code != G_IO_ERROR_NOT_FOUND)
         g_warning ("Could not load applications usage data: %s", error->message);
+
       g_error_free (error);
       return;
     }



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