Use our utils wrapper which already has it
[claws.git] / src / plugins / fancy / fancy_viewer.c
index b7d1988ea610b5d7dbd6e49ab8f1e850c8ad9922..49c7769b604dd7692747135ce0e36cc9f127ece3 100644 (file)
@@ -31,6 +31,7 @@
 #include <fancy_prefs.h>
 #include <alertpanel.h>
 #include <file-utils.h>
+#include <utils.h>
 
 #include <printing.h>
 
@@ -801,7 +802,7 @@ static void download_file_cb(GtkWidget *widget, FancyViewer *viewer)
 #endif
        const gchar *link = viewer->cur_link;
        gchar *filename = g_utf8_strchr(link, -1, g_utf8_get_char("/"));
-       filename = g_strconcat(g_get_home_dir(), filename, NULL);
+       filename = g_strconcat(get_home_dir(), filename, NULL);
        gchar *fname = filesel_select_file_save(_("Save as"), filename);
        if (!fname) {
                g_free(filename);