diff options
author | Antonio Diaz Diaz <antonio@gnu.org> | 2018-08-16 01:23:11 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-08-16 01:23:46 +0200 |
commit | 4a66f15d28b50197e79974c6ff81e67f908b4eb1 (patch) | |
tree | 8f177bfef4a3fe664121565c71ad2adaac347e6f /ark/compressedfile.cpp | |
parent | fdac7d46bc06da8ef7b404898b831cc1ebc6c94f (diff) | |
download | tdeutils-4a66f15d28b50197e79974c6ff81e67f908b4eb1.tar.gz tdeutils-4a66f15d28b50197e79974c6ff81e67f908b4eb1.zip |
Ark: Add support for Lzip
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ark/compressedfile.cpp')
-rw-r--r-- | ark/compressedfile.cpp | 8 |
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"; |