Added support for lzip in Konqueror Ark plugin.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 6 years ago
parent fee867fd05
commit 614e9c494b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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";
}

Loading…
Cancel
Save