]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-individual-information-dialog.c
don't pass a GError when first trying to start gnome-contacts
[empathy.git] / libempathy-gtk / empathy-individual-information-dialog.c
index 2b8d64bd3d85166920ea87b381a4afa6da290b09..baa1e4c0409e45acd57f996b31aae1a8a66a0a60 100644 (file)
@@ -370,7 +370,11 @@ start_gnome_contacts (FolksIndividual *individual,
 
   args = g_strdup_printf ("-i %s", folks_individual_get_id (individual));
 
-  if (!empathy_launch_external_app ("gnome-contacts.desktop", args, &error))
+  /* First try the old desktop name */
+  if (empathy_launch_external_app ("gnome-contacts.desktop", args, NULL))
+    goto out;
+
+  if (!empathy_launch_external_app ("org.gnome.Contacts.desktop", args, &error))
     {
       if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
         {
@@ -390,6 +394,7 @@ start_gnome_contacts (FolksIndividual *individual,
         }
     }
 
+out:
   g_free (args);
 }