summaryrefslogtreecommitdiffstats
path: root/konq-plugins
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-18 01:25:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-18 01:25:29 +0000
commit29f1d0b48d05cff4f498b87b3e71254903002021 (patch)
treeddf0b64ee0d68f5909811bd2a406cbd2cf0beaca /konq-plugins
parentcd23d8eea8c6b88299c08eabfd0b04abd356decd (diff)
downloadtdeaddons-29f1d0b48d05cff4f498b87b3e71254903002021.tar.gz
tdeaddons-29f1d0b48d05cff4f498b87b3e71254903002021.zip
Added xz and lzma support to the compress menu
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1164934 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins')
-rw-r--r--konq-plugins/arkplugin/arkplugin.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/konq-plugins/arkplugin/arkplugin.cpp b/konq-plugins/arkplugin/arkplugin.cpp
index 9d5e0f8..1295ada 100644
--- a/konq-plugins/arkplugin/arkplugin.cpp
+++ b/konq-plugins/arkplugin/arkplugin.cpp
@@ -284,6 +284,20 @@ void ArkMenu::compMimeTypes()
m_archiveMimeTypes << "application/x-lzop";
}
+ bool havelzma = false;
+ if ( !KStandardDirs::findExe( "lzma" ).isNull() && m_conf->readBoolEntry( "UseLzma", false ) )
+ {
+ havelzma = true;
+ m_archiveMimeTypes << "application/x-lzma";
+ }
+
+ bool havexz = false;
+ if ( !KStandardDirs::findExe( "xz" ).isNull() && m_conf->readBoolEntry( "UseXz", false ) )
+ {
+ havexz = true;
+ m_archiveMimeTypes << "application/x-xz";
+ }
+
if ( !KStandardDirs::findExe( "tar" ).isNull() && m_conf->readBoolEntry( "UseTar", true ) )
{
m_archiveMimeTypes << "application/x-tar";
@@ -296,6 +310,10 @@ void ArkMenu::compMimeTypes()
}
if ( havelzop )
m_archiveMimeTypes << "application/x-tzo";
+ if ( havelzma )
+ m_archiveMimeTypes << "application/x-tlz";
+ if ( havexz )
+ m_archiveMimeTypes << "application/x-txz";
}
if ( !KStandardDirs::findExe( "lha" ).isNull() && m_conf->readBoolEntry( "UseLha", false ) )
@@ -330,6 +348,7 @@ void ArkMenu::compMimeTypes()
if ( !KStandardDirs::findExe( "ar" ).isNull() && m_conf->readBoolEntry( "UseAr", false ) )
m_archiveMimeTypes << "application/x-archive";
+
}
void ArkMenu::extMimeTypes()