diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2006-01-29 05:39:36 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2006-01-29 05:39:36 (GMT) |
commit | f0d0dfdce5afb47592d95da8308ed02d471f16e5 (patch) | |
tree | 3b5098bd65e99e2682a00b5452ef27f2fbf1bf1a /shell | |
parent | 728e908951ca5d09152d4fdd309dd52bce692c7a (diff) |
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.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-job-xfer.c | 4 |
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); |