Bug 185030 - Revival of kio_rar and kio_p7zip
Summary: Revival of kio_rar and kio_p7zip
Status: RESOLVED NOT A BUG
Alias: None
Product: kio
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 192724 261912 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-20 15:39 UTC by Michal Ziabkowski
Modified: 2024-06-15 18:36 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Ziabkowski 2009-02-20 15:39:18 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Gentoo Packages

Some time back there used to be two two kioslaves for rar and p7zip. They were pretty handy, but it seems they've fallen into bitrot. While Ark has grown much more stable and robust since then, it might make sense to port kio_rar and kio_p7zip to KDE4. Could someone capable look into this, please? Thanks in advance.
Comment 2 Michal Ziabkowski 2009-02-28 19:05:20 UTC
Mailed him about this a week ago. Still no response.
Comment 3 Dario Andres 2009-05-15 01:49:19 UTC
*** Bug 192724 has been marked as a duplicate of this bug. ***
Comment 4 Michal Ziabkowski 2010-06-26 17:34:13 UTC
So, I tried my hand at porting both kio-slaves and they kind of worked. I've encountered some charset issues in kio_rar caused by archive headers being parsed directly, and kio_p7zip dying when adding larger files. Most importantly though, neither seems to work for the two people I sent a copy for testing. I'm starting to think this is an exercise in futility, since both kio-slaves weren't feature-complete to begin with and Ark is light-years ahead.
Comment 5 Jekyll Wu 2011-12-15 14:18:23 UTC
*** Bug 261912 has been marked as a duplicate of this bug. ***
Comment 6 sintesis 2011-12-17 11:19:02 UTC
*** This bug has been confirmed by popular vote. ***
Comment 7 Anguo 2012-04-25 18:48:05 UTC
@Michal Ziabkowski : where is the source code of kio_rar? Did you upload the result of your work anywhere?

@all: gwenview could also use kio_rar: with KDE3, gwenview used to handle rar archives. It no longer does in KDE4. :( Can gwenview use whatever Ark uses to browse rar archives? If so, how? If not, then there is still a case for porting kio_rar to KD4..
Comment 8 Michal Ziabkowski 2012-04-30 09:29:59 UTC
I wasn't pleased with the results, so I haven't uploaded it anywhere. If someone is interested in picking up where I left off, I might clean it up a bit and push it to a Gitorious repo or something. Like I said earlier, it kind of works. There are problems with non-ASCII filenames and larger archives cause the ioslave to die. It would probably be best to rewrite it from scratch, though.
Comment 9 Anguo 2012-04-30 13:43:11 UTC
@Michal, thank you for your reply.

In short, I think it would be useful if you could publish what you have.

I am interested in using it with gwenview. Can you confirm that with your kio_rar we can browse rar archives within gwenview the same way we can browse zip archives?

Rewriting from scratch might be the most ideal solution. The problem is that there doesn't seem any body here who is both willing and capable of doing it. Personally, I wouldn't know where to start. I am a very poor/very beginner C++ developer and I could at most fix easy bugs. And I would prefer having something that partially works, with the limitations you noted, to having nothing at all!

About non-ascii characters: I understand this would be a problem in Polish, and to a lesser extent in my native French. The temporary solution is to rename the rar archive to use only ascii characters.

About larger archives: how large (how many MB) are you speaking about? 

But again, everybody:
Can gwenview use whatever Ark uses to browse rar archives?
What other use cases are there for kio_rar, beside gwenview?

Thanks.
Comment 10 Michal Ziabkowski 2012-04-30 15:30:48 UTC
I'll try to clean up the commits a bit and create a Gitorious repo in my spare time, then. Unless a tarball is enough for you, in which case I could upload it right away.

Yes, it indeed works with Gwenview. RAR archives are browsable just as zip.

Some of this ioslave stuff is too arcane to me, to be honest, so I wasn't too keen on rewriting it from scratch. What I've done was porting away from the old classes and massaging the code till it worked, then fixing the build system.

As for the size which caused kio_rar to die, I don't quite remember. But I think it happened with archives of 500MB and more.
Comment 11 Anguo 2012-06-18 12:49:16 UTC
Hello Michal,

Sorry for the long, long delay in replying. I have been caught up by the political news in my country!

I think the most appropriate place to upload this would be git.kde.org. But maybe you don't have write access there and I don't want to burden you more than necessary. Gitorious may be a good alternative, although I'd be satisfied with a tarball with compile instructions. Do as you feel is best, according to the time you have available. 

Djienkuje for your contributions.
Comment 12 oracle2b 2013-02-16 01:34:21 UTC
I would love to see some progress on this.
Comment 13 Michal Ziabkowski 2013-02-16 15:17:12 UTC
Sorry for taking so long to do this. I cleaned up my local repos a bit and pushed the code for both kio_rar and kio_p7zip to Gitorious. Beware, here be dragons. It's basically some 3-year-old code I'm publishing so that someone can pick up where I left off. I hope this is of some use to anyone.
Comment 14 Jekyll Wu 2013-02-16 16:33:52 UTC
(In reply to comment #13)
> Sorry for taking so long to do this. I cleaned up my local repos a bit and
> pushed the code for both kio_rar and kio_p7zip to Gitorious. Beware, here be
> dragons. It's basically some 3-year-old code I'm publishing so that someone
> can pick up where I left off. I hope this is of some use to anyone.

Are those the right links ? 

http://gitorious.org/kio_rar_kde4
http://gitorious.org/kio_p7zip_kde4
Comment 15 Michal Ziabkowski 2013-02-16 16:52:55 UTC
Yes. I was just about to post them :)
Comment 16 Michal Ziabkowski 2013-07-31 14:46:33 UTC
Out of curiosity, has anyone checked out the code? If anyone is interested in taking over, I'd be more than happy to give you commit rights to those repos. Alternatively, you could create your private clones at Gitorious.
Comment 17 Nate Graham 2018-04-17 21:14:28 UTC
Those repos seem dead. :( Doesn't appear that there's really much interest in this. If anyone's gonna do this, it won't require a Bugzilla ticket.
Comment 18 Michal Ziabkowski 2018-04-19 18:41:17 UTC
Actually, I've moved them to gitlab. Haven't done anything with the code, though.

Anyway, here are the links:
https://gitlab.com/kio_rar_kde4
https://gitlab.com/kio_p7zip_kde4