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

package info (click to toggle)
xfe 2.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 20,952 kB
  • sloc: cpp: 71,957; sh: 9,879; ansic: 6,968; makefile: 345; 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-03-15

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-01-25 11:14:13.000000000 +0100
+++ s15/src/FilePanel.cpp	2025-03-16 00:10:54.220411033 +0100
@@ -5371,7 +5371,7 @@
         }
         else if (ext1 == "rar")
         {
-            cmd = "unrar x -o+ ";
+            cmd = "unar -f -t ";
         }
         else if (ext1 == "lzh")
         {
@@ -5526,7 +5526,7 @@
         }
         else if (ext1 == "rar")
         {
-            cmd = "unrar x -o+ ";
+            cmd = "unar -f -t ";
         }
         else if (ext1 == "lzh")
         {
@@ -5636,7 +5636,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-01-25 11:14:13.000000000 +0100
+++ s15/src/SearchPanel.cpp	2025-03-16 00:10:54.260411273 +0100
@@ -2850,7 +2850,7 @@
         }
         else if (ext1 == "rar")
         {
-            cmd = "unrar x -o+ ";
+            cmd = "unar -f -t ";
         }
         else if (ext1 == "lzh")
         {