After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 602147 - right-click to mount archives (zip, iso, tgz, etc.)
right-click to mount archives (zip, iso, tgz, etc.)
Status: RESOLVED WONTFIX
Product: nautilus
Classification: Core
Component: general
2.28.x
Other Linux
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-17 00:08 UTC by Andrew Jorgensen
Modified: 2016-03-01 17:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Ubuntu's mount-archive.desktop (294 bytes, application/x-desktop)
2009-11-17 00:08 UTC, Andrew Jorgensen
  Details
file: add mount_enclosing_volume function (6.38 KB, patch)
2012-04-22 17:40 UTC, Carl-Anton Ingmarsson
none Details | Review
file: add is_mountable_archive function (2.76 KB, patch)
2012-04-22 17:40 UTC, Carl-Anton Ingmarsson
needs-work Details | Review
view: show mount archive action if the selected file(s) is an archive (6.97 KB, patch)
2012-04-22 17:40 UTC, Carl-Anton Ingmarsson
needs-work Details | Review

Description Andrew Jorgensen 2009-11-17 00:08:49 UTC
Created attachment 147943 [details]
Ubuntu's mount-archive.desktop

This feature has been downstream in Ubuntu for several releases now.  It should be moved upstream.  It's extraordinarily trivial.
Comment 1 Vincent Untz 2010-03-24 12:37:28 UTC
Any opinion on this? Should this live in gvfs instead?
Comment 2 Carl-Anton Ingmarsson 2012-04-22 17:40:01 UTC
Created attachment 212555 [details] [review]
file: add mount_enclosing_volume function

this maps to g_file_mount_enclosing_volume and will be used to implement
mounting of archives.
Comment 3 Carl-Anton Ingmarsson 2012-04-22 17:40:04 UTC
Created attachment 212556 [details] [review]
file: add is_mountable_archive function

The function checks if the file is an archive that is supported by the GVFS
archive backend.
Comment 4 Carl-Anton Ingmarsson 2012-04-22 17:40:06 UTC
Created attachment 212557 [details] [review]
view: show mount archive action if the selected file(s) is an archive
Comment 5 Carl-Anton Ingmarsson 2012-04-22 18:36:36 UTC
The above patches adds an action to mount the selected archive. Atm. it hardcodes the supported formats which is kind of bad since it really depends on the version of libarchive. It also doesn't check if gvfsd-archive is installed which we probably can't rely on.
Comment 6 William Jon McCann 2012-08-14 19:09:24 UTC
We have this now. Select Open With->Archive Mounter.
Comment 7 Carl-Anton Ingmarsson 2012-08-14 19:39:07 UTC
Right, that's mount-archive.desktop which is showing up I guess. Is nautilus shipping that now or is it still added downstream?
Comment 8 Cosimo Cecchi 2012-08-15 01:43:29 UTC
(In reply to comment #7)
> Right, that's mount-archive.desktop which is showing up I guess. Is nautilus
> shipping that now or is it still added downstream?

It's shipped in a downstream Fedora patch...reopening.
Comment 9 Cosimo Cecchi 2012-09-19 20:01:22 UTC
I don't think it makes sense to think of an archive as something you can mount, and we already have an Extract option in the context menu offered by file-roller.

IMO the default action should be extract - and possibly have a way to browse archives without file-roller, but they shouldn't appear as mounts.
Comment 10 Pacho Ramos 2013-04-20 11:56:52 UTC
This looks like a dupe of bug https://bugzilla.gnome.org/show_bug.cgi?id=567235
Comment 11 André Klapper 2015-01-17 02:41:28 UTC
Comment on attachment 212556 [details] [review]
file: add is_mountable_archive function

$:andre\> patch --no-backup-if-mismatch -p1 < aaaapatch 
patching file libnautilus-private/nautilus-file.c
Hunk #1 succeeded at 7001 (offset 107 lines).
patching file libnautilus-private/nautilus-file.h
Hunk #1 FAILED at 187.
1 out of 1 hunk FAILED -- saving rejects to file libnautilus-private/nautilus-file.h.rej

Hence setting 'needs-rework' as patch does not apply cleanly against git master.
Comment 12 André Klapper 2015-01-17 02:43:17 UTC
Comment on attachment 212557 [details] [review]
view: show mount archive action if the selected file(s) is an archive

$:andre\> patch --no-backup-if-mismatch -p1 < aaaapatch 
patching file src/nautilus-actions.h
Hunk #1 succeeded at 54 with fuzz 1 (offset -2 lines).
patching file src/nautilus-directory-view-ui.xml
Hunk #1 FAILED at 16.
Hunk #2 FAILED at 134.
2 out of 2 hunks FAILED -- saving rejects to file src/nautilus-directory-view-ui.xml.rej
patching file src/nautilus-view.c
Hunk #1 succeeded at 124 (offset 10 lines).
Hunk #2 succeeded at 1088 (offset -15 lines).
Hunk #3 FAILED at 7053.
Hunk #4 succeeded at 7647 (offset 101 lines).
Hunk #5 FAILED at 8369.
Hunk #6 succeeded at 8622 with fuzz 2 (offset 136 lines).
2 out of 6 hunks FAILED -- saving rejects to file src/nautilus-view.c.rej

Hence setting 'needs-rework' as patch does not apply cleanly against git master.
Comment 13 Carlos Soriano 2016-03-01 17:56:00 UTC
if what is wanted is better integration of the compressed files in nautilus, we are gonna have it for 3.22.

In any case, as this bug stands, I don't think this is the right solution. So closing as won't fix.