@ -375,6 +375,20 @@ void ArkMenu::extMimeTypes()
m_extractMimeTypes < < " application/x-lzop " ;
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 ( ) )
if ( ! KStandardDirs : : findExe ( " tar " ) . isNull ( ) )
{
{
m_extractMimeTypes < < " application/x-tar " ;
m_extractMimeTypes < < " application/x-tar " ;
@ -387,6 +401,10 @@ void ArkMenu::extMimeTypes()
}
}
if ( havelzop )
if ( havelzop )
m_extractMimeTypes < < " application/x-tzo " ;
m_extractMimeTypes < < " application/x-tzo " ;
if ( havelzma )
m_extractMimeTypes < < " application/x-lzma " ;
if ( havexz )
m_extractMimeTypes < < " application/x-xz " ;
}
}
if ( ! KStandardDirs : : findExe ( " lha " ) . isNull ( ) )
if ( ! KStandardDirs : : findExe ( " lha " ) . isNull ( ) )