diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-17 17:54:24 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-17 17:54:24 +0000 |
commit | a4043f1fc05f0710a025d0f02d13d641cec6309f (patch) | |
tree | 0855c060c046d0240b768fdea60e99d3a7edf24c /ark/compressedfile.cpp | |
parent | b678e7f967f438e123324c7a34b02388e68d70dc (diff) | |
download | tdeutils-a4043f1fc05f0710a025d0f02d13d641cec6309f.tar.gz tdeutils-a4043f1fc05f0710a025d0f02d13d641cec6309f.zip |
Preliminary xzip/LZMA support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1164816 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ark/compressedfile.cpp')
-rw-r--r-- | ark/compressedfile.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ark/compressedfile.cpp b/ark/compressedfile.cpp index 29d29a9..65e21de 100644 --- a/ark/compressedfile.cpp +++ b/ark/compressedfile.cpp @@ -124,6 +124,18 @@ void CompressedFile::initData() m_archiver_program = "bzip2"; m_defaultExtensions << ".bz2" << ".bz"; } + if ( mimeType == "application/x-lzma" ) + { + m_unarchiver_program = "unlzma"; + m_archiver_program = "lzma"; + m_defaultExtensions << ".lzma"; + } + if ( mimeType == "application/x-xz" ) + { + m_unarchiver_program = "unxz"; + m_archiver_program = "xz"; + m_defaultExtensions << ".xz"; + } if ( mimeType == "application/x-lzop" ) { m_unarchiver_program = "lzop"; m_archiver_program = "lzop"; |