Bug 127585

Summary: ark 2.6.2 can't open ar archives
Product: [Applications] ark Reporter: Davide Madrisan <davide.madrisan>
Component: generalAssignee: Harald Hvaal <metellius>
Status: RESOLVED DUPLICATE    
Severity: normal CC: rakuco
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: ugly patch

Description Davide Madrisan 2006-05-18 15:25:03 UTC
Version:           2.6.2 (using KDE KDE 3.5.2)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 4.0.2 
OS:                Linux

ark 2.6.2 can't find the ar tool while opening ar files.

the call to 'newArch->unarchUtilityIsAvailable()' in arkwidget.cpp returns false even if the ar tool is installed in a directory listed the system PATH:

[davide@buddha ~]$ which ar
/usr/bin/ar
[davide@buddha ~]$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/games

After some tests I've found that the boolean variable 'm_bUnarchUtilityIsAvailable' is never set because the 'Arch::verifyUncompressUtilityIsAvailable' function (arch.cpp) is not called ('Arch::verifyCompressUtilityIsAvailable' is called instead).
And in the file ar.cpp only the variable 'm_unarchiver_program' is not set, but perhaps this is not a bug.
Comment 1 Davide Madrisan 2006-05-18 15:28:44 UTC
Created attachment 16158 [details]
ugly patch
Comment 2 Haris Kouzinopoulos 2006-05-18 17:37:40 UTC
Hi, thnx for your bug report and the patch. However i fixed it a couple of days ago (see the patch there for the correct fix)
We need more coders in ark, if you would like to help drop me or henrique an email.
Cheers!

*** This bug has been marked as a duplicate of 126051 ***