use gio functions for file copy

This commit is contained in:
Philip Flohr
2018-05-07 19:41:47 +02:00
committed by Dmitry Podgorny
parent 2795dc487c
commit e4ddced420
3 changed files with 17 additions and 23 deletions

View File

@@ -184,13 +184,12 @@ plugins_install(const char *const plugin_name, const char *const filename, GStri
return FALSE;
}
gboolean result = copy_file(filename, target_path->str);
gboolean result = copy_file(filename, target_path->str, false);
g_string_free(target_path, TRUE);
if (result) {
result = plugins_load(plugin_name);
}
return result;
}