mate-desktop / engrampa

A file archiver for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
108 stars 52 forks source link

Add libarchive support #52

Open ghost opened 10 years ago

ghost commented 10 years ago

Add "libarchive/bsdtar" and "The Unarchiver/unar" support for (rar and others) files support

bsdtar and unar support rar v3[0][1]

[0]http://libarchive.org [1]http://unarchiver.c3.cx/formats

infirit commented 10 years ago

Unarchiver is already used for rar files if unrar is not found, ac5d3248257e9e1ddbf57ca5828a1de165d445a4.

And as I understand bsdtar is compatible with gnu tar so it is up to the distribution to make it work with bsdtar.

ghost commented 10 years ago

yes you're right, but libarchive/bsdtar could be cool to be included on engrampa too. in my opinion is the best alternative option for RAR archives :)

sc0w commented 10 years ago

on debian testing, I have installed the package unar, I dont have the package unrar.

but engrampa show me the error: No se pudo crear el archivador El tipo del archivador no es compatible.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748104

the same rar file is opened perfectly with file-roller

infirit commented 10 years ago

@sc0w works fine for me on gentoo with unar 1.6. And please don't put unrelated issues on a feature request, instead open a new issue.

mandian commented 7 years ago

Hi, I have the same problem. I'm trying to package MATE 1.18.x for OpenMandriva and I discovered engrampa had problems with tar archives. I guess it's because OpenMandriva uses bsdtar as default tar but bsdtar has a different syntax with respect to tar and it has a different output too (even if the tar archive are compatible) so engrampa is currently unusable. Have you some plan to add support for bsdtar to engrampa?

stokito commented 5 years ago

libarchive is written in C++ so it may be a problem to integrate with C written engrampa

ht990332 commented 5 years ago

libarchive is written in C. It should be easy enough to use it in C projects.

mandian commented 2 years ago

Hi,

is there some good news about it? file-roller has supported libarchive since version 3.5 so I hope it is possible to support it in engrampa too

https://github.com/GNOME/file-roller/blob/master/src/fr-archive-libarchive.c