diff options
-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 97513b8..f1687fc 100644 --- a/konq-plugins/arkplugin/arkplugin.cpp +++ b/konq-plugins/arkplugin/arkplugin.cpp @@ -375,6 +375,20 @@ void ArkMenu::extMimeTypes() m_extractMimeTypes << "application/x-lzop"; } + bool havelzma = false; + if ( !KStandardDirs::findExe( "lzma" ).isNull() ) + { + havelzma = true; + m_archiveMimeTypes << "application/x-lzma"; + } + + bool havexz = false; + if ( !KStandardDirs::findExe( "xz" ).isNull() ) + { + havexz = true; + m_archiveMimeTypes << "application/x-xz"; + } + if ( !KStandardDirs::findExe( "tar" ).isNull() ) { m_extractMimeTypes << "application/x-tar"; @@ -387,6 +401,10 @@ void ArkMenu::extMimeTypes() } if ( havelzop ) m_extractMimeTypes << "application/x-tzo"; + if ( havelzma ) + m_extractMimeTypes << "application/x-lzma"; + if ( havexz ) + m_extractMimeTypes << "application/x-xz"; } if ( !KStandardDirs::findExe( "lha" ).isNull() ) |