File: 15_unrar-using-free-unar.patch

package info (click to toggle)
xfe 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,864 kB
  • sloc: cpp: 75,575; sh: 9,881; ansic: 8,055; makefile: 358; sed: 16
file content (53 lines) | stat: -rw-r--r-- 1,552 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Package:     xfe
Subject:     replace unrar with free unar
Author:      Joachim Wiedorn <joodebian at joonet.de>
Bug-Debian:  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862968
Forwarded:   not needed
Last-Update: 2025-05-22

As unrar is non-free in Debian, several people are unable
to use this (out of the box). The free unar do the same.
---

diff -urN s14/src/FilePanel.cpp s15/src/FilePanel.cpp
--- s14/src/FilePanel.cpp	2025-05-15 09:57:00.000000000 +0200
+++ s15/src/FilePanel.cpp	2025-05-22 17:53:24.251776923 +0200
@@ -5423,7 +5423,7 @@
         }
         else if (ext1 == "rar")
         {
-            cmd = "unrar x -o+ ";
+            cmd = "unar -f -t ";
         }
         else if (ext1 == "lzh")
         {
@@ -5578,7 +5578,7 @@
         }
         else if (ext1 == "rar")
         {
-            cmd = "unrar x -o+ ";
+            cmd = "unar -f -t ";
         }
         else if (ext1 == "lzh")
         {
@@ -5688,7 +5688,7 @@
             }
             else if (ext1 == "rar")
             {
-                cmd = "unrar x -o+ ";
+                cmd = "unar -f -t ";
             }
             else if (ext1 == "lzh")
             {
diff -urN s14/src/SearchPanel.cpp s15/src/SearchPanel.cpp
--- s14/src/SearchPanel.cpp	2025-05-14 14:11:24.000000000 +0200
+++ s15/src/SearchPanel.cpp	2025-05-22 17:53:24.251776923 +0200
@@ -2861,7 +2861,7 @@
         }
         else if (ext1 == "rar")
         {
-            cmd = "unrar x -o+ ";
+            cmd = "unar -f -t ";
         }
         else if (ext1 == "lzh")
         {