[gnome-session] [gsm] Do not print NULL on error
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-session] [gsm] Do not print NULL on error
- Date: Mon, 22 Jun 2009 13:56:44 -0400 (EDT)
commit 5c6c3e8f8ee6599bf124cf976ce4d339cfeabe71
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]