summaryrefslogtreecommitdiffstats
path: root/konq-plugins/arkplugin/arkplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/arkplugin/arkplugin.cpp')
-rw-r--r--konq-plugins/arkplugin/arkplugin.cpp18
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";
}