Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-job-xfer.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-job-xfer.c')
-rw-r--r--shell/ev-job-xfer.c4
1 files changed, 3 insertions, 1 deletions
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);