summaryrefslogtreecommitdiffstats
path: root/ark/compressedfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ark/compressedfile.cpp')
-rw-r--r--ark/compressedfile.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ark/compressedfile.cpp b/ark/compressedfile.cpp
index a6b0ddc..86e5fbd 100644
--- a/ark/compressedfile.cpp
+++ b/ark/compressedfile.cpp
@@ -124,6 +124,11 @@ void CompressedFile::initData()
m_archiver_program = "bzip2";
m_defaultExtensions << ".bz2" << ".bz";
}
+ if (mimeType == "application/x-lzip") {
+ m_unarchiver_program = "lzip";
+ m_archiver_program = "lzip";
+ m_defaultExtensions << ".lz";
+ }
if ( mimeType == "application/x-lzma" )
{
m_unarchiver_program = "unlzma";
@@ -187,6 +192,9 @@ void CompressedFile::open()
TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments();
*kp << m_unarchiver_program << "-f" ;
+ if (m_unarchiver_program == "lzip") {
+ *kp << "-d";
+ }
if ( m_unarchiver_program == "lzop")
{
*kp << "-d";