diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-05-24 22:53:00 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-05-24 22:53:00 +0200 |
commit | 54621a3d3ece6ddf0bdd9868b8d0405c396c59b2 (patch) | |
tree | 4fec13e11e513546089939fd5a54a8247a5e2d63 /src | |
parent | 9763d347aabc9050e4f17133bcf287ed1cbc190d (diff) | |
download | ayatana-indicator-messages-54621a3d3ece6ddf0bdd9868b8d0405c396c59b2.tar.gz ayatana-indicator-messages-54621a3d3ece6ddf0bdd9868b8d0405c396c59b2.tar.bz2 ayatana-indicator-messages-54621a3d3ece6ddf0bdd9868b8d0405c396c59b2.zip |
Check whether supplied desktop files exist
Diffstat (limited to 'src')
-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)) { |