summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-19 17:11:36 +0100
committerinfirit <[email protected]>2014-11-19 19:36:03 +0100
commit797489947df52775704e169cf029dc4d6f36c6aa (patch)
treeded0045eea87cd11a2d9a266b6c7003516f4485a
parented7fbd77ed784c868dfb0095db8db13e4a41db53 (diff)
downloadengrampa-797489947df52775704e169cf029dc4d6f36c6aa.tar.bz2
engrampa-797489947df52775704e169cf029dc4d6f36c6aa.tar.xz
Fixed loading of zip archives with zip/unzip
Always add CAN_READ to the capabilities if unzip is present Based on FR commit: ddfbd6ebf2498d9f89196e857a5cb302546cb035 From: Paolo Bacchilega <[email protected]> Gnome bug: http://bugzilla.gnome.org/show_bug.cgi?id=653404
-rw-r--r--src/fr-command-zip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fr-command-zip.c b/src/fr-command-zip.c
index 014cf05..2a5d42e 100644
--- a/src/fr-command-zip.c
+++ b/src/fr-command-zip.c
@@ -408,7 +408,7 @@ fr_command_zip_get_capabilities (FrCommand *comm,
else
capabilities |= FR_COMMAND_CAN_WRITE;
}
- else if (is_program_available ("unzip", check_command))
+ if (is_program_available ("unzip", check_command))
capabilities |= FR_COMMAND_CAN_READ;
return capabilities;