From 70a694eae600bc6612e8789c33c12a1f15ae2afd Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sun, 13 Oct 2013 21:59:15 +0800 Subject: Fix incorrect download directory --- embed/ephy-download.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- cgit