arK from 3.5 fix - -d option for gunzip & Co. is not valid

Vadim Zhukov persgray at gmail.com
Fri Sep 19 10:18:04 CEST 2008


Hello.

Patch below fixes problem with calling uncompress(1), gunzip(1) and 
bunzip2(1) utilities: they should not receive "-d" flag, so programs 
called changed to "compress", "gzip" and "bzip2", respectively, which 
handle "-d" flag.

-- 
  Best wishes,
    Vadim Zhukov


--- ark/tar.cpp.orig	Mon May 22 22:08:38 2006
+++ ark/tar.cpp	Fri Sep 19 11:54:09 2008
@@ -218,13 +219,13 @@ QString TarArch::getCompressor()
 QString TarArch::getUnCompressor()
 {
     if ( m_fileMimeType == "application/x-tarz" )
-        return QString( "uncompress" );
+        return QString( "compress" );
 
     if ( m_fileMimeType == "application/x-tgz" )
-        return QString( "gunzip" );
+        return QString( "gzip" );
 
     if (  m_fileMimeType == "application/x-tbz" )
-        return QString( "bunzip2" );
+        return QString( "bzip2" );
 
     if( m_fileMimeType == "application/x-tzo" )
         return QString( "lzop" );


More information about the Kde-utils-devel mailing list