diff options
author | Michele Calgaro <[email protected]> | 2018-08-18 21:30:50 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2018-08-18 21:30:50 +0900 |
commit | 614e9c494b96d5ab1804ae9ccf2f3fe131918361 (patch) | |
tree | 4e4a175821a53c6f740ad4a274e4389cf368243e | |
parent | fee867fd0555c57ce8a07570cc15a65c55a889c9 (diff) | |
download | tdeaddons-614e9c494b96d5ab1804ae9ccf2f3fe131918361.tar.gz tdeaddons-614e9c494b96d5ab1804ae9ccf2f3fe131918361.zip |
Added support for lzip in Konqueror Ark plugin.
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r-- | konq-plugins/arkplugin/arkplugin.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/konq-plugins/arkplugin/arkplugin.cpp b/konq-plugins/arkplugin/arkplugin.cpp index 9e369c3..1194f39 100644 --- a/konq-plugins/arkplugin/arkplugin.cpp +++ b/konq-plugins/arkplugin/arkplugin.cpp @@ -299,6 +299,13 @@ void ArkMenu::compMimeTypes() m_archiveMimeTypes << "application/x-lzma"; } + bool havelzip = false; + if ( !TDEStandardDirs::findExe( "lzip" ).isNull() && m_conf->readBoolEntry( "UseLzip", false ) ) + { + havelzip = true; + m_archiveMimeTypes << "application/x-lzip"; + } + if ( !TDEStandardDirs::findExe( "tar" ).isNull() && m_conf->readBoolEntry( "UseTar", true ) ) { if ( havexz ) @@ -310,6 +317,8 @@ void ArkMenu::compMimeTypes() if ( havelzop ) m_archiveMimeTypes << "application/x-tzo"; if ( havelzma ) + m_archiveMimeTypes << "application/x-tlzma"; + if ( havelzip ) m_archiveMimeTypes << "application/x-tlz"; m_archiveMimeTypes << "application/x-tar"; } @@ -387,6 +396,13 @@ void ArkMenu::extMimeTypes() m_extractMimeTypes << "application/x-lzma"; } + bool havelzip = false; + if ( !TDEStandardDirs::findExe( "lzip" ).isNull() ) + { + havelzip = true; + m_extractMimeTypes << "application/x-lzip"; + } + if ( !TDEStandardDirs::findExe( "tar" ).isNull() ) { if ( havexz ) @@ -398,6 +414,8 @@ void ArkMenu::extMimeTypes() if ( havelzop ) m_extractMimeTypes << "application/x-tzo"; if ( havelzma ) + m_extractMimeTypes << "application/x-tlzma"; + if ( havelzip ) m_extractMimeTypes << "application/x-tlz"; m_extractMimeTypes << "application/x-tar"; } |