Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aualin:kde
kdeaddons3
kdeaddons-xz-support.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdeaddons-xz-support.patch of Package kdeaddons3
diff -Naru kdeaddons-3.5.10_orig/konq-plugins/arkplugin/arkplugin.cpp kdeaddons-3.5.10/konq-plugins/arkplugin/arkplugin.cpp --- kdeaddons-3.5.10_orig/konq-plugins/arkplugin/arkplugin.cpp 2020-05-27 11:04:10.015381798 +0000 +++ kdeaddons-3.5.10/konq-plugins/arkplugin/arkplugin.cpp 2020-05-27 11:23:01.476025660 +0000 @@ -277,11 +277,18 @@ if ( itemCount == 1 ) m_archiveMimeTypes << "application/x-bzip2"; } - bool havelzop = false; - if ( !KStandardDirs::findExe( "lzop" ).isNull() && m_conf->readBoolEntry( "UseLzop", false ) ) + bool havelzma = false; + if ( !KStandardDirs::findExe( "lzma" ).isNull() && m_conf->readBoolEntry( "UseLzma", false ) ) { - havelzop = true; - m_archiveMimeTypes << "application/x-lzop"; + havelzma = true; + m_archiveMimeTypes << "application/x-lzma"; + } + + bool havexz = false; + if ( !KStandardDirs::findExe( "xz" ).isNull() && m_conf->readBoolEntry( "UseXz", true ) ) + { + havexz = true; + m_archiveMimeTypes << "application/x-xz"; } if ( !KStandardDirs::findExe( "tar" ).isNull() && m_conf->readBoolEntry( "UseTar", true ) ) @@ -291,8 +298,10 @@ m_archiveMimeTypes << "application/x-tgz"; if ( havebz2 ) m_archiveMimeTypes << "application/x-tbz"; - if ( havelzop ) - m_archiveMimeTypes << "application/x-tzo"; + if ( havelzma ) + m_archiveMimeTypes << "application/x-tlz"; + if ( havexz ) + m_archiveMimeTypes << "application/x-txz"; } if ( !KStandardDirs::findExe( "lha" ).isNull() && m_conf->readBoolEntry( "UseLha", false ) ) @@ -346,11 +355,18 @@ m_extractMimeTypes << "application/x-bzip2"; } - bool havelzop = false; - if ( !KStandardDirs::findExe( "lzop" ).isNull() ) + bool havelzma = false; + if ( !KStandardDirs::findExe( "lzma" ).isNull() ) + { + havelzma = true; + m_extractMimeTypes << "application/x-lzma"; + } + + bool havexz = false; + if ( !KStandardDirs::findExe( "unxz" ).isNull() ) { - havelzop = true; - m_extractMimeTypes << "application/x-lzop"; + havexz = true; + m_extractMimeTypes << "application/x-xz"; } if ( !KStandardDirs::findExe( "tar" ).isNull() ) @@ -360,8 +376,10 @@ m_extractMimeTypes << "application/x-tgz"; if ( havebz2 ) m_extractMimeTypes << "application/x-tbz"; - if ( havelzop ) - m_extractMimeTypes << "application/x-tzo"; + if ( havelzma ) + m_extractMimeTypes << "application/x-tlz"; + if ( havexz ) + m_extractMimeTypes << "application/x-txz"; } if ( !KStandardDirs::findExe( "lha" ).isNull() )
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor