From 75e184c10b9d8f1f52ebcde19660e45c5244f9a0 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Sat, 27 May 2006 12:37:56 +0000 Subject: Open links with anchors. Fix for the bug #339836. * shell/ev-jobs.c: (ev_job_xfer_run): * shell/main.c: (load_files): Open links with anchors. Fix for the bug #339836. --- (limited to 'shell/ev-jobs.c') diff --git a/shell/ev-jobs.c b/shell/ev-jobs.c index 9ee598a..4e01ab1 100644 --- a/shell/ev-jobs.c +++ b/shell/ev-jobs.c @@ -433,9 +433,13 @@ ev_job_xfer_run (EvJobXfer *job) char *tmp_name; char *base_name; + /* We'd like to keep extension of source uri since + * it helps to resolve some mime types, say cbz */ + tmp_name = ev_tmp_filename (); - base_name = g_path_get_basename (job->uri); - job->local_uri = g_strconcat ("file:", tmp_name, base_name, NULL); + base_name = gnome_vfs_uri_extract_short_name (source_uri); + job->local_uri = g_strconcat ("file:", tmp_name, "-", base_name, NULL); + g_free (base_name); g_free (tmp_name); target_uri = gnome_vfs_uri_new (job->local_uri); -- cgit v0.9.1