summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToyeesh Sinha <[email protected]>2023-06-09 20:50:22 +0530
committerLuke from DC <[email protected]>2023-06-14 03:36:53 +0000
commit5602738e3eb15652a7e979a9c85fc6478401761c (patch)
treee95072b343fc4d90710b9f7a0c6169256748f837
parenta043e0a81460a94e0732672afc3831689984caf8 (diff)
downloadengrampa-5602738e3eb15652a7e979a9c85fc6478401761c.tar.bz2
engrampa-5602738e3eb15652a7e979a9c85fc6478401761c.tar.xz
Fixed libmagic bug
-rw-r--r--src/fr-archive.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fr-archive.c b/src/fr-archive.c
index 301968f..b42b4a4 100644
--- a/src/fr-archive.c
+++ b/src/fr-archive.c
@@ -1102,7 +1102,12 @@ load_local_archive (FrArchive *archive,
old_command = archive->command;
- mime_type = get_mime_type_from_filename (archive->local_copy);
+#if ENABLE_MAGIC
+ mime_type = get_mime_type_from_magic_numbers (archive->local_copy);
+#else
+ mime_type = get_mime_type_from_filename (archive->local_copy);
+#endif
+
if (! create_command_to_load_archive (archive, mime_type)) {
mime_type = get_mime_type_from_content (archive->local_copy);
if (! create_command_to_load_archive (archive, mime_type)) {