X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=shell%2Fev-job-xfer.c;h=cc9b7c4709f70968eb88f32258239deb4a90fd62;hb=43f12175ba221f7c241f0c9cde323c23b8db53e8;hp=28e7a91a472ff725948e9019c540ce01120a1884;hpb=4684716c489657edf098565eb54bdf86bad1b45c;p=evince.git diff --git a/shell/ev-job-xfer.c b/shell/ev-job-xfer.c index 28e7a91a..cc9b7c47 100644 --- a/shell/ev-job-xfer.c +++ b/shell/ev-job-xfer.c @@ -115,9 +115,11 @@ ev_job_xfer_run (EvJobXfer *job) source_uri = gnome_vfs_uri_new (job->uri); if (!gnome_vfs_uri_is_local (source_uri)) { char *tmp_name; + char *base_name; tmp_name = ev_tmp_filename (); - job->local_uri = g_strconcat ("file:", tmp_name, NULL); + base_name = g_path_get_basename (job->uri); + job->local_uri = g_strconcat ("file:", tmp_name, base_name, NULL); g_free (tmp_name); target_uri = gnome_vfs_uri_new (job->local_uri);