Added
Link Here
|
1 |
--- plugins/cli7zplugin/cliplugin.cpp.orig 2022-01-03 15:30:07.000000000 -0600 |
2 |
+++ plugins/cli7zplugin/cliplugin.cpp 2022-01-20 13:50:17.536486000 -0600 |
3 |
@@ -49,25 +49,24 @@ void CliPlugin::setupCliProperties() |
4 |
|
5 |
m_cliProps->setProperty("captureProgress", false); |
6 |
|
7 |
- m_cliProps->setProperty("addProgram", QStringLiteral("7z")); |
8 |
- m_cliProps->setProperty("addSwitch", QStringList{QStringLiteral("a"), |
9 |
- QStringLiteral("-l")}); |
10 |
+ m_cliProps->setProperty("addProgram", QStringLiteral("7zz")); |
11 |
+ m_cliProps->setProperty("addSwitch", QStringList{QStringLiteral("a")}); |
12 |
|
13 |
- m_cliProps->setProperty("deleteProgram", QStringLiteral("7z")); |
14 |
+ m_cliProps->setProperty("deleteProgram", QStringLiteral("7zz")); |
15 |
m_cliProps->setProperty("deleteSwitch", QStringLiteral("d")); |
16 |
|
17 |
- m_cliProps->setProperty("extractProgram", QStringLiteral("7z")); |
18 |
+ m_cliProps->setProperty("extractProgram", QStringLiteral("7zz")); |
19 |
m_cliProps->setProperty("extractSwitch", QStringList{QStringLiteral("x")}); |
20 |
m_cliProps->setProperty("extractSwitchNoPreserve", QStringList{QStringLiteral("e")}); |
21 |
|
22 |
- m_cliProps->setProperty("listProgram", QStringLiteral("7z")); |
23 |
+ m_cliProps->setProperty("listProgram", QStringLiteral("7zz")); |
24 |
m_cliProps->setProperty("listSwitch", QStringList{QStringLiteral("l"), |
25 |
QStringLiteral("-slt")}); |
26 |
|
27 |
- m_cliProps->setProperty("moveProgram", QStringLiteral("7z")); |
28 |
+ m_cliProps->setProperty("moveProgram", QStringLiteral("7zz")); |
29 |
m_cliProps->setProperty("moveSwitch", QStringLiteral("rn")); |
30 |
|
31 |
- m_cliProps->setProperty("testProgram", QStringLiteral("7z")); |
32 |
+ m_cliProps->setProperty("testProgram", QStringLiteral("7zz")); |
33 |
m_cliProps->setProperty("testSwitch", QStringLiteral("t")); |
34 |
|
35 |
m_cliProps->setProperty("passwordSwitch", QStringList{QStringLiteral("-p$Password")}); |
36 |
@@ -111,7 +110,7 @@ bool CliPlugin::readListLine(const QString& line) |
37 |
return false; |
38 |
} |
39 |
|
40 |
- const QRegularExpression rxVersionLine(QStringLiteral("^p7zip Version ([\\d\\.]+) .*$")); |
41 |
+ const QRegularExpression rxVersionLine(QStringLiteral("^7-Zip \\(z\\) ([\\d\\.]+) .*$")); |
42 |
QRegularExpressionMatch matchVersion; |
43 |
|
44 |
switch (m_parseState) { |
45 |
@@ -120,7 +119,7 @@ bool CliPlugin::readListLine(const QString& line) |
46 |
if (matchVersion.hasMatch()) { |
47 |
m_parseState = ParseStateHeader; |
48 |
const QString p7zipVersion = matchVersion.captured(1); |
49 |
- qCDebug(ARK) << "p7zip version" << p7zipVersion << "detected"; |
50 |
+ qCDebug(ARK) << "7-Zip version" << p7zipVersion << "detected"; |
51 |
} |
52 |
break; |
53 |
|