Version: 1.2.1 (using KDE 4.2.1) Compiler: gcc 4.3.3 OS: Linux Installed from: Gentoo Packages The option "Browse through archives" allows us to view the content of an archive without Ark, zip files work very well, but if the zip file has another extension like jar, war or ear then it just works through Ark. Dolphin should open those zip files too.
Still applies to KDE 4.5.4
I can reproduce this issue for jar files, yet not for war or ear files. Can you still reproduce it also for those?
As it seams, if the file content is auto-detected as a "Zip archive" it will load inside of Dolphin, but if it is detected by the extension like "Java Archive" it will not. I tried to create an "Web archive" and I can't make it load inside of Dolphin.
Created attachment 73259 [details] Patched Zip Protocol File I simply modified the zip.protocol file and updated the ksycoca database. Changed archiveMimetype=application/zip to archiveMimetype=application/zip,application/x-java-archive in /usr/share/kde4/services/zip.protocol and then rebuild the ksycoca database .war files worked for me
Resetting assignee to default as per bug #305719
(In reply to comment #4) > Created attachment 73259 [details] > Patched Zip Protocol File Submit it onto reviewboard ?
[Part of the Dolphin Bug Weeks 2012] I can confirm this for .jar files with Dolphin 2.1/KDE SC 4.9.2 (Kubuntu Quantal packages). It seems to work fine with .war and .ear files, though.
Review-Request: https://git.reviewboard.kde.org/r/101455/
*** Bug 308112 has been marked as a duplicate of this bug. ***
Please test this fix instead: http://www.davidfaure.fr/2012/188989.diff (and reply on reviewboard, or ping me by private mail)
Git commit 4f296cfbced2c4ad54beec8f500ed2d3fc04ee05 by David Faure. Committed on 29/11/2012 at 11:07. Pushed by dfaure into branch 'KDE/4.9'. Also check parent mimetypes in protocolForArchiveMimetype(). This fixes opening of JAR archives with the zip ioslave. REVIEW: 101455 FIXED-IN: 4.9.4 M +18 -1 kio/kio/kprotocolmanager.cpp http://commits.kde.org/kdelibs/4f296cfbced2c4ad54beec8f500ed2d3fc04ee05
After upgrading to 4.9.4 .xlsx and .pptx files are opened within Dolphin, not with separate application (as they did before and as it is assigned in filetypes association). Is that meant to be that way?
(In reply to comment #12) > After upgrading to 4.9.4 .xlsx and .pptx files are opened within Dolphin, > not with separate application (as they did before and as it is assigned in > filetypes association). Is that meant to be that way? No, it's certainly not meant to be that way. Looks like what has been reported today as bug 311214.
The fix had to be reverted due to its disastrous consequences (bug 311214). Maybe changing kioslave/archive/zip.protocol is the better idea in the end. But IMHO, it might actually be sufficient that you can open .jar files by entering zip:/path/to/foo.jar in the location bar. I don't know if we should really risk another regression for such a minor thing. From my point of view, this report could be marked as WONTFIX or 'wishlist', but since it's more a KIO issue, I'll leave that up to others to decide.
*** Bug 311573 has been marked as a duplicate of this bug. ***
I don't know how this could be achieved - but Konqueror once had a solution, in KDE 3: When you left clicked on a file it was opened in konqueror and when you middle clicked it was opened with the appropriate default application... Maybe something like that could be integrated into dolphin for files that actually are archives...
Most users will never need such a feature, so IMHO it is sufficient if you can open .jar files through zip:/path/to/jar. I'll therefore close this bug report, but if you consider this feature to be important enough then please file a new bug (probably against Dolphin instead of KIO).