Open source of local files directly with no temporary copy

This commit is contained in:
Christian Dywan 2009-09-26 23:56:29 +02:00
parent f294d79a74
commit b70a2569df

View file

@ -3147,6 +3147,13 @@ _action_source_view_activate (GtkAction* action,
#endif
}
if (g_str_has_prefix (uri, "file://"))
{
gchar* filename = g_filename_from_uri (uri, NULL, NULL);
sokoke_spawn_program (text_editor, filename, TRUE);
g_free (filename);
return;
}
katze_net_load_uri (browser->net, uri, NULL,
(KatzeNetTransferCb)midori_browser_source_transfer_cb, browser);
g_free (text_editor);