files icon indicating copy to clipboard operation
files copied to clipboard

Discontinue file-roller contract, provide archive compression and extraction internally

Open jeremypw opened this issue 6 months ago • 3 comments

The current dependence on the correct installation of both the FileRoller flatpak and the file-roller contract is fragile. FileRoller is specifically excluded from being shown in the Application Menu so it is essential that Files can be used for this function. Moreover the use of contracts is giving way to portals in the Flatpak world.

We should offer compression and extraction operations internally using e.g. libarchive in a similar way to Nautilus.

jeremypw avatar Jun 06 '25 14:06 jeremypw

GVFS already has a archive:// URI that uses libarchive, so we can simply use GLib.Files to extraction and creation support.

But note that FileRoller supports more types of archives than libarchive, so some suport will be lost.

Marukesu avatar Jun 06 '25 14:06 Marukesu

Thanks @Marukesu I'll look into that.

jeremypw avatar Jun 06 '25 17:06 jeremypw

Presumably the gvfs archive:// backend is intended to make archive files look like a regular folder? So compression and extraction happens transparently on the fly? Neither Dolphin nor Nautilus seem to recognize archive:// URIs at the moment - they launch file roller.

jeremypw avatar Jun 09 '25 08:06 jeremypw