From fcdbd8105bbdad356a614a4a4cae57a23ae0161e Mon Sep 17 00:00:00 2001 From: Ray Vine Date: Tue, 29 May 2018 16:53:35 +0900 Subject: [PATCH] Konqueror Ark plugin: change default compression format from gz to xz. Enable jar format in "compress as" sub menu. Signed-off-by: Michele Calgaro --- konq-plugins/arkplugin/arkplugin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/konq-plugins/arkplugin/arkplugin.cpp b/konq-plugins/arkplugin/arkplugin.cpp index 270ab36..ed81025 100644 --- a/konq-plugins/arkplugin/arkplugin.cpp +++ b/konq-plugins/arkplugin/arkplugin.cpp @@ -93,7 +93,7 @@ ArkMenu::ArkMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringLis { compMimeTypes(); actionMenu = new TDEActionMenu( i18n( "Compress" ), "ark", actionCollection(), "ark_compress_menu" ); - m_ext = m_conf->readEntry( "LastExtension", ".tar.gz" ); + m_ext = m_conf->readEntry( "LastExtension", ".tar.xz" ); if ( itemCount == 1 ) { item = itemList.first(); @@ -104,7 +104,7 @@ ArkMenu::ArkMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringLis else { action = new TDEAction( KMimeType::mimeType( m_conf->readEntry( - "LastMimeType", "application/x-tgz" ) )->comment(), + "LastMimeType", "application/x-txz" ) )->comment(), 0, this, TQT_SLOT( slotCompressAsDefault() ), actionCollection() ); } actionMenu->insert( action ); @@ -320,7 +320,7 @@ void ArkMenu::compMimeTypes() { m_archiveMimeTypes << "application/x-zip"; - if ( m_conf->readBoolEntry( "UseJar", false ) ) + if ( m_conf->readBoolEntry( "UseJar", true ) ) m_archiveMimeTypes << "application/x-jar"; }