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