Index: lib/ephy-file-helpers.c =================================================================== RCS file: /cvs/gnome/epiphany/lib/ephy-file-helpers.c,v retrieving revision 1.26 diff -p -u -u -p -r1.26 ephy-file-helpers.c --- lib/ephy-file-helpers.c 26 Feb 2005 22:01:48 -0000 1.26 +++ lib/ephy-file-helpers.c 3 Mar 2005 18:17:21 -0000 @@ -466,10 +466,13 @@ launch_desktop_item (const char *desktop { GnomeDesktopItem *item = NULL; GList *uris = NULL; - char *canonical; + char *canonical = "(none)"; int ret = -1; item = gnome_desktop_item_new_from_file (desktop_file, 0, NULL); + + g_print ("Launching desktop item %p\n", item); + if (item == NULL) return FALSE; if (parameter != NULL) @@ -478,9 +481,13 @@ launch_desktop_item (const char *desktop uris = g_list_append (uris, canonical); } + g_print ("Canonical for '%s' is '%s'\n", parameter, canonical); + gnome_desktop_item_set_launch_time (item, user_time); ret = gnome_desktop_item_launch (item, uris, 0, error); + g_print ("Launched desktop item, retval=%d\n", ret); + g_list_foreach (uris, (GFunc) g_free, NULL); g_list_free (uris); gnome_desktop_item_unref (item); @@ -502,8 +509,6 @@ ephy_file_launch_desktop_file (const cha for (i = 0; dirs[i] != NULL; i++) { - g_print ("Looking in path: %s\n", dirs[i]); - path = g_build_filename (dirs[i], "applications", filename, NULL); if (g_file_test (path, G_FILE_TEST_IS_REGULAR)) break; @@ -540,7 +545,12 @@ ephy_file_launch_application (GnomeVFSMi g_return_val_if_fail (application != NULL, FALSE); g_return_val_if_fail (parameter != NULL, FALSE); + g_print ("Launching application %s with parameter '%s'\n", gnome_vfs_mime_application_get_name (application), parameter ? parameter : "(no param)"); + desktop_file = gnome_vfs_mime_application_get_desktop_file_path (application); + + g_print ("Desktop file is %s\n", desktop_file ? desktop_file : "(no desktop file)"); + if (desktop_file != NULL) { ret = launch_desktop_item (desktop_file, parameter, user_time, &error); @@ -573,6 +583,8 @@ ephy_file_launch_handler (const char *mi canonical = gnome_vfs_make_uri_canonical (address); g_return_val_if_fail (canonical != NULL, FALSE); + + g_print ("Launching handler for %s on file %s (canonical %s)\n", mime_type ? mime_type : "(no mime type given)", address, canonical); if (mime_type != NULL) { Index: src/window-commands.c =================================================================== RCS file: /cvs/gnome/epiphany/src/window-commands.c,v retrieving revision 1.156 diff -p -u -u -p -r1.156 window-commands.c --- src/window-commands.c 27 Feb 2005 20:13:26 -0000 1.156 +++ src/window-commands.c 3 Mar 2005 18:17:21 -0000 @@ -628,6 +628,8 @@ save_source_completed_cb (EphyEmbedPersi dest = ephy_embed_persist_get_dest (persist); g_return_if_fail (dest != NULL); + g_print ("Saving source completed, dest=%s\n", dest); + ephy_file_delete_on_exit (dest); ephy_file_launch_handler ("text/plain", dest, user_time); @@ -655,6 +657,8 @@ save_temp_source (EphyEmbed *embed, return; } + g_print ("Persisting page to %s\n", tmp); + persist = EPHY_EMBED_PERSIST (ephy_embed_factory_new_object (EPHY_TYPE_EMBED_PERSIST)); @@ -688,6 +692,8 @@ window_cmd_view_page_source (GtkAction * address = ephy_embed_get_location (embed, TRUE); scheme = gnome_vfs_get_uri_scheme (address); user_time = gtk_get_current_event_time (); + + g_print ("View-Source: address=%s, scheme=%s\n", address, scheme); if (strcmp (scheme, "file") == 0) {