Bug 139374 - lha and ace compressors support bug
Summary: lha and ace compressors support bug
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-29 20:59 UTC by linuxboy
Modified: 2008-11-24 13:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description linuxboy 2006-12-29 20:59:27 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Compiled From Sources
OS:                Linux

ARK should support lha and ace archivers.

The only requirements seems to be that utility "lha" and utility "unace" are in the PATH.

Good, I have these utility in the path. They works fine if i run them from console.

ARK doesn't work whit them.

For ACE archives, a double click or an "open with" shows a dialog who tell me that the archive format in unrecognized.

For LHA archives, a double click or an "open with" shows a dialog who tell me that "The utility is not in the PATH".

Note for ACE:
When I look the sources of "ace.cpp" into kdeutils/ark, I've found a strange row:
m_archiver_program = m_unarchiver_program = "/home/henrique/ArkTest/teste.sh";
This is surely a bug. May be that ace isn't really supported for now, ok.

Note for LHA:
When I try this from console:
ark --add test.txt

ARK shows me a file dialog. If I specify "test.lha" and then I click on Save, a LHA archive is correctly created.

I hope that I've explained in a comprensible english.
Comment 1 Adam Pigg 2007-05-27 16:49:49 UTC
Same here....looking at the code, for .lha files, the unarchiver program is set to .clear()


but in archive.cpp, verifyUtilityIsAvailable checks for .isNull() so im not sure if that is right....if i get a chance i'll checkout the code and try and fix it.

Im not sure about .ace file...im just trying to extract an .lha file for my amiga.
Comment 2 Henrique Pinto 2007-05-27 19:46:11 UTC
On Fri 29 Dec 2006 17:59, linuxboy wrote:
> May be that ace isn't really supported for now, ok.


Yes, ACE isn't supposed to be supported for now. LHA should work, though, 
and if it isn't working, we have a bug.
Comment 3 Martin Steigerwald 2007-06-22 17:21:46 UTC
I can confirm this bug on KDE 3.5.7 under a mixture of Debian Etch/Lenny/Sid/Experimental.

lha is in path:
martin@shambala:~#1> which lha
/usr/bin/lha

And can be executed:
martin@shambala:~#1> lha --version
lha for unix version 1.14i

Still Ark complains that the command "lha" is not in the path, when I try to open an LhA archive with it.

It doesn't happen all of the time tough. When I click away the error message and then try to open the file in Ark for a second time it worked here.

I can consistently reproduce this: Wether I use "Open with", drag and drop or the command line or the File/Open menu on the first try I get the error message, on the second try it works - you need to leave Ark open of course, between the two attempts.
Comment 4 linuxboy 2007-12-09 14:54:31 UTC
> Still Ark complains that the command "lha" is not in the path, when I try to
> open an LhA archive with it. 
 
seems that if i apply this patch to lha.cpp file, ark works with lha decompression (kde 3.5.8):

--- a/ark/lha.cpp	2006-05-22 20:08:38.000000000 +0200
+++ b/ark/lha.cpp	2007-12-09 13:47:07.000000000 +0100
@@ -57,6 +57,8 @@
 {
   m_archiver_program = "lha";
   verifyCompressUtilityIsAvailable( m_archiver_program );
+  m_unarchiver_program = "lha";
+  verifyUncompressUtilityIsAvailable( m_unarchiver_program );
 
   m_headerString = "----";
 }
 
I've simply added an unarchiver voice. I think that it isn't final solution. Hernrique, please, check it out.

Comment 5 David 2008-11-24 12:42:38 UTC
Would someone please explain why this is resolved "UNMAINTAINED"? 
It looks like Ark is still there in KDE4, so if it's fixed there, then why not mark it fixed but mention the KDE3 status here? and if not fixed, then it should be open.

I came here to report this bug for .lzh files, I have not tested the .ace part.

KDE Version  2.6.4 (KDE 3.5.10, Kubuntu (hardy) 4:3.5.10-0ubuntu1~hardy1)
Application  Archiving Tool
Operating System  Linux (i686) release 2.6.24-21-generic
Compiler  Target: i486-linux-gnu
Comment 6 Harald Hvaal 2008-11-24 13:22:06 UTC
This bug is about a certain problem in the KDE3s compressors, and with no one maintaining kde3 ark, and there not even being a lha/ace plugin available yet for KDE4 ark, I marked it unmaintained. This means anyone are fine to fix the bugs, but they are not actively maintained.