diff options
author | sc0w <[email protected]> | 2016-05-25 02:29:21 +0200 |
---|---|---|
committer | sc0w <[email protected]> | 2016-05-25 02:29:21 +0200 |
commit | a2a537eb4c263a5b33851572a189fe89476b212e (patch) | |
tree | da1860b74bb1401511873aa25ff5719b31dd8fcf /src/fr-command-7z.c | |
parent | 1299500ad141d3e5b88ada43161687409a0775c2 (diff) | |
download | engrampa-a2a537eb4c263a5b33851572a189fe89476b212e.tar.bz2 engrampa-a2a537eb4c263a5b33851572a189fe89476b212e.tar.xz |
p7zip-rar 15.14 supported
since 15.14, p7zip-rar uses the plugin Rar.so to handle archives
It can find on /usr/lib/ or /usr/libexec/
If someone has it in another folder, we can add it
Fixes #136
Diffstat (limited to 'src/fr-command-7z.c')
-rw-r--r-- | src/fr-command-7z.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c index 20cfa2c..a7d032e 100644 --- a/src/fr-command-7z.c +++ b/src/fr-command-7z.c @@ -599,7 +599,8 @@ fr_command_7z_get_capabilities (FrCommand *comm, if (is_mime_type (mime_type, "application/x-rar") || is_mime_type (mime_type, "application/x-cbr")) { - if (! check_command || g_file_test ("/usr/lib/p7zip/Codecs/Rar29.so", G_FILE_TEST_EXISTS)) + if (! check_command || g_file_test ("/usr/lib/p7zip/Codecs/Rar29.so", G_FILE_TEST_EXISTS) || g_file_test ("/usr/lib/p7zip/Codecs/Rar.so", G_FILE_TEST_EXISTS) + || g_file_test ("/usr/libexec/p7zip/Codecs/Rar29.so", G_FILE_TEST_EXISTS) || g_file_test ("/usr/libexec/p7zip/Codecs/Rar.so", G_FILE_TEST_EXISTS)) capabilities |= FR_COMMAND_CAN_READ; } else |