From: Mario Rugiero <[email protected]>
---
src/utils.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/utils.c b/src/utils.c
index 11633bc..6845459 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -144,6 +144,8 @@ _failed:
argv[1] = "--gzip";
else if(g_str_has_suffix(package_path, ".tar.bz2"))
argv[1] = "--bzip2";
+ else if(g_str_has_suffix(package_path, ".tar.xz"))
+ argv[1] = "--xz";
else /* the file format is not supported */
goto _out;
@@ -248,7 +250,8 @@ gboolean install_icon_theme(GtkWindow* parent)
gtk_window_set_transient_for(GTK_WINDOW(fc), GTK_WINDOW(app.dlg));
gtk_file_filter_add_pattern( filter, "*.tar.gz" );
gtk_file_filter_add_pattern( filter, "*.tar.bz2" );
- gtk_file_filter_set_name( filter, _("*.tar.gz, *.tar.bz2 (Icon Theme)") );
+ gtk_file_filter_add_pattern( filter, "*.tar.xz" );
+ gtk_file_filter_set_name( filter, _("*.tar.gz, *.tar.bz2, *.tar.xz (Icon
Theme)") );
gtk_file_chooser_add_filter( GTK_FILE_CHOOSER(fc), filter );
gtk_file_chooser_set_filter( GTK_FILE_CHOOSER(fc), filter );
--
2.17.1
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list