aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2013-10-13 21:59:15 +0800
committerLAN-TW <lantw44@gmail.com>2013-10-13 21:59:15 +0800
commit70a694eae600bc6612e8789c33c12a1f15ae2afd (patch)
tree52558deb6f25429ef5f18992c77782e791595654
parent5508e5e6b1f4e3ec7d3fc84aa7533ae88014487d (diff)
downloadgsoc2013-epiphany-archive-integration-rebase.tar.gz
gsoc2013-epiphany-archive-integration-rebase.tar.zst
gsoc2013-epiphany-archive-integration-rebase.zip
Fix incorrect download directoryarchive-integration-rebase
-rw-r--r--embed/ephy-download.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index daed46c22..46c400d36 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -661,6 +661,7 @@ ephy_download_do_extract_archive (EphyDownload *download)
AutoarExtract *arextract;
GSettings *settings;
GCancellable *cancellable;
+ char *download_dir_name;
settings = g_settings_new (AUTOAR_PREF_DEFAULT_GSCHEMA_ID);
arpref = autoar_pref_new_with_gsettings (settings);
@@ -673,9 +674,11 @@ ephy_download_do_extract_archive (EphyDownload *download)
return;
}
+ download_dir_name = g_path_get_dirname (download->priv->destination);
arextract = autoar_extract_new (download->priv->destination,
- ephy_file_get_downloads_dir (),
+ download_dir_name,
arpref);
+ g_free (download_dir_name);
if (download->priv->arextract != NULL)
g_object_unref (download->priv->arextract);