[file-roller/wip/jtojnar/7zip: 18/20] command-7z: Fix RAR support detection with p7zip ≥ 15.07




commit 842cebfe0e8e70e34f48973a8ec3a99c5d1cff0f
Author: Jan Tojnar <jtojnar gmail com>
Date:   Tue Jun 21 12:13:02 2022 +0200

    command-7z: Fix RAR support detection with p7zip ≥ 15.07
    
    From the changelog fro “Version 15.07 beta”:
    
        - "bin/Codecs/Rar29.so" renamed to "bin/Codecs/Rar.so"
    
    This is also the location Debian’s p7zip-rar codec is installed to.
    No need to preserve the old path since the change was made over 7 years ago.
    
    Related engrampa commit:
    
    https://github.com/mate-desktop/engrampa/commit/a2a537eb4c263a5b33851572a189fe89476b212e

 src/fr-command-7z.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index fe76d1ea..4e48a400 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -617,7 +617,7 @@ fr_command_7z_get_capabilities (FrArchive  *archive,
                        /* give priority to rar and unrar that supports RAR files better. */
                        if (!_g_program_is_available ("rar", check_command)
                            && !_g_program_is_available ("unrar", check_command)
-                           && (! check_command || g_file_test ("/usr/lib/p7zip/Codecs/Rar29.so", 
G_FILE_TEST_EXISTS)))
+                           && (! check_command || g_file_test ("/usr/lib/p7zip/Codecs/Rar.so", 
G_FILE_TEST_EXISTS)))
                                capabilities |= FR_ARCHIVE_CAN_READ;
                }
                else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]