diff options
-rw-r--r-- | src/messages-service.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c index fbbfb9d..cfc07fc 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -57,6 +57,12 @@ build_launcher (gpointer data) const gchar *desktop_file; appinfo = g_desktop_app_info_new (desktop_id); + if (!appinfo) { + g_warning ("could not find a desktop file with id '%s'\n", desktop_id); + g_free (desktop_id); + return FALSE; + } + desktop_file = g_desktop_app_info_get_filename (appinfo); if (!g_hash_table_lookup (applications, desktop_file)) { |