aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-19 17:02:27 -0500
committerTed Gould <ted@canonical.com>2009-08-19 17:02:27 -0500
commita32eba9041f5fb90083f5212bc58bb6d6a094912 (patch)
treeabbd981165693c82200cc59dc6ac0336fcb649fc /src
parent23e2cdf7f788996e5dc429444b1fd81425bf3b05 (diff)
downloadayatana-indicator-messages-a32eba9041f5fb90083f5212bc58bb6d6a094912.tar.gz
ayatana-indicator-messages-a32eba9041f5fb90083f5212bc58bb6d6a094912.tar.bz2
ayatana-indicator-messages-a32eba9041f5fb90083f5212bc58bb6d6a094912.zip
Oops, forgot one level of redirection here
Diffstat (limited to 'src')
-rw-r--r--src/messages-service.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 481df1d..6f62b1f 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -492,11 +492,18 @@ gboolean
build_launcher (gpointer data)
{
gchar * path = (gchar *)data;
+ gchar * desktop = NULL;
+
+ g_file_get_contents(path, &desktop, NULL, NULL);
+ g_free(path);
+
+ if (desktop == NULL) {
+ return FALSE;
+ }
launcherList_t * ll = g_new0(launcherList_t, 1);
ll->menuitem = launcher_menu_item_new(path);
- g_free(path);
launcherList = g_list_insert_sorted(launcherList, ll, launcherList_sort);
return FALSE;