~larsu/bamf/fixup-gtk-application-matching

« back to all changes in this revision

Viewing changes to src/bamf-matcher.c

  • Committer: Lars Uebernickel
  • Date: 2015-01-29 12:44:37 UTC
  • Revision ID: lars.uebernickel@canonical.com-20150129124437-zfilsiqi44kp51ye
Matcher: use desktop file path when matching on _GTK_APPLICATION_ID

Previously, bamf_application_get_application_desktop_file() would return the
bare id in those cases.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1660
1660
 
1661
1661
  if (app_id)
1662
1662
    {
1663
 
      if (g_hash_table_contains (priv->desktop_id_table, app_id))
1664
 
        desktop_files = g_list_prepend (desktop_files, app_id);
 
1663
      GList *file_list;
 
1664
 
 
1665
      if ((file_list = g_hash_table_lookup (priv->desktop_id_table, app_id)))
 
1666
        desktop_files = g_list_prepend (desktop_files, g_strdup (file_list->data));
1665
1667
      else
1666
1668
        g_free (app_id);
1667
1669
    }