[gnome-session/gnome-2-26] [gsm] Do not print NULL on error



commit 1ebacce594c7e848f5d8af9517043d4eb7cd4bf8
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Jun 22 19:55:02 2009 +0200

    [gsm] Do not print NULL on error
    
    Instead of printing NULL when the Exec key cannot be parsed, print the
    URI of the desktop file that has an issue.

 gnome-session/gsm-autostart-app.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-session/gsm-autostart-app.c b/gnome-session/gsm-autostart-app.c
index 167afe9..095dda7 100644
--- a/gnome-session/gsm-autostart-app.c
+++ b/gnome-session/gsm-autostart-app.c
@@ -791,8 +791,8 @@ autostart_app_start_spawn (GsmAutostartApp *app,
                                                NULL,
                                                &local_error);
         if (command == NULL) {
-                g_warning ("Unable to parse command '%s': %s",
-                           command,
+                g_warning ("Unable to parse command from  '%s': %s",
+                           egg_desktop_file_get_source (app->priv->desktop_file),
                            local_error->message);
                 g_error_free (local_error);
         }



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