Fixed the majority of the xz and lzma handling code

There may still be an issue with the compress as menu and tar.lzma support, however it is relatively minor


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1166484 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 08f47b2561
commit d29cd50663

@ -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() )

Loading…
Cancel
Save