From 9012119cc135fc02bb852b31c1ed9708fda41e20 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Tue, 4 Jan 2022 13:52:45 +0000 Subject: [PATCH] Update for libarchive - Include libarchive in geeqie-install-debian.sh - Include warning message if a compressed file is opened but libarchive is not installed --- geeqie-install-debian.sh | 2 ++ src/misc.c | 1 + 2 files changed, 3 insertions(+) diff --git a/geeqie-install-debian.sh b/geeqie-install-debian.sh index a5dd6b0c..900929cb 100755 --- a/geeqie-install-debian.sh +++ b/geeqie-install-debian.sh @@ -81,6 +81,8 @@ optional_array=( "libraw-dev" "libomp (required by libraw)" "libomp-dev" +"libarchive (for compressed files e.g. zip)" +"libarchive-dev" ) # Optional for GTK3 only diff --git a/src/misc.c b/src/misc.c index c1f338f4..1130135c 100644 --- a/src/misc.c +++ b/src/misc.c @@ -392,6 +392,7 @@ void tree_path_free_wrapper(void *data, void *useradata) #ifndef HAVE_ARCHIVE gchar *open_archive(FileData *fd) { + log_printf("%s", _("Warning: libarchive not installed")); return NULL; } -- 2.20.1