summaryrefslogtreecommitdiff
path: root/src/fr-archive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fr-archive.c')
-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)) {