From f0d0dfdce5afb47592d95da8308ed02d471f16e5 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Sun, 29 Jan 2006 05:39:36 +0000 Subject: Append real filename to tmp filename since often document type is * shell/ev-job-xfer.c: (ev_job_xfer_run): Append real filename to tmp filename since often document type is determined by extension. --- (limited to 'shell') diff --git a/shell/ev-job-xfer.c b/shell/ev-job-xfer.c index 28e7a91..cc9b7c4 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); -- cgit v0.9.1