Bug 142781 - Better use of kio handlers, such as entering into .tar.gz file
Summary: Better use of kio handlers, such as entering into .tar.gz file
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-10 13:34 UTC by Filip Brcic
Modified: 2007-03-19 16:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch to add the handler for zip files (626 bytes, patch)
2007-03-10 14:19 UTC, Filip Brcic
Details
Full support for .tar.* and .zip files (3.61 KB, patch)
2007-03-10 20:08 UTC, Filip Brcic
Details
Patch for Dolphin 0.8.2 on KDE3 (2.82 KB, patch)
2007-03-19 16:59 UTC, Filip Brcic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Brcic 2007-03-10 13:34:51 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc-4.1.1 
OS:                Linux

I like the looks of the new KDE file manager. But, it lacks this simple functionality - to browse through archives. I am guessing that it shouldn't be too hard to implement that ability and it would be helpful. As far as I can see, Dolphin does support that (if I manually enter the zip:/.../somefile.zip URL), but it doesn't enter the archive when I click on it.
Comment 1 Filip Brcic 2007-03-10 14:19:31 UTC
Created attachment 19925 [details]
Patch to add the handler for zip files

This is a patch for dolphin svn (current). It adds very simplified handler for
clicking on a "application/x-zip" file. And it works (just tested it, see the
screenshot:
http://img92.imageshack.us/my.php?image=dolphinziphandlerai6.png)The same can
be copy-pasted for .tar.gz, .tar.bz2, ... files. There is one problem though.
When you enter the zip file (that is the zip:/ protocol), you stay in the zip
protocol when you return to the parent directory (unless you click on back, of
course). I am now looking urlnavigator.* and similar files to find a way to
bypass that (maybe even hide the zip:/ protocol in the URL).
Comment 2 Peter Penz 2007-03-10 19:53:40 UTC
Thanks a lot Filip for your patch, I've just committed it into SVN :-)
Comment 3 Filip Brcic 2007-03-10 20:08:54 UTC
Created attachment 19931 [details]
Full support for .tar.* and .zip files

I had a busy day, so I didn't find time to resolve this before. I have now made
a patch that enables dolphin svn to enter .zip, .tar, .tar.bz2, .tar.gz and
other tar-based formats. I have also managed to change urlnavigator.cpp so that
it reverts the path to regular one when you exit the archive. I think that this
is a useful feature for dolphin. I will backport this patch to dolphin 0.8.2
from kde3 and post it as soon as possible.

Best regards
Brcha

PS: I have just seen that my first patch is already integrated into dolphin :)
Comment 4 Peter Penz 2007-03-10 20:16:50 UTC
Thanks for your additional patch, I'll commit it today in a few hours :-) Regarding Dolphin 0.8.2: I won't release another version for the KDE3 version of Dolphin [1] -> please don't spend too much time for backporting this fix (for sure if you want to do it for yourself, just feel free to do so :-)).

Best regards,
Peter

[1] This is mainly because it takes too much time for me maintaining two versions in parallel...
Comment 5 Marcel Juhnke 2007-03-19 16:10:03 UTC
Hello Filip, I would be very interested in this patch for the KDE3 Dolphin. I just integrated a second sidebar into Dolphin like the KDE4 version has (Though I have to fine-tune my code, as I am a programming beginner :-). In fact I didn't need much lines of additional code for the second sidebar, otherwise I have never could done this).

Best regards, Marcel Juhnke
Comment 6 Filip Brcic 2007-03-19 16:59:47 UTC
Created attachment 20036 [details]
Patch for Dolphin 0.8.2 on KDE3

Here's the patch for Dolphin 0.8.2 (last Dolphin for KDE3). It is also
available from Gentoo portage (as kde-misc/dolphin-0.8.2-r1).

Best regards
Filip