This should be relatively easy to achieve with
- installing appropriate command line utilities
- creating a desktop file that executes them (by mime type)
For a start, look at /usr/share/applications/sailfish-archive.desktop. Assuming there’s a script called unar that recognizes archive types and uses the right utility, this edit should be enough:
[Desktop Entry]
Type=Application
Name=Sailfish Archive
NoDisplay=true
MimeType=application/zip;application/x-java-archive;application/x-xz-compressed-tar;application/x-compressed-tar;application/x-bzip-compressed-tar;application/x-7z-compresse
d;application/x-tar;application/x-xz;application/x-gzip;application/x-bzip2;application/vnd.comicbook+zip;
Icon=icon-launcher-component-gallery
Comment=Opens archives
Exec=/home/defaultuser/.local/bin/unar %F
Of course you’d need to add/remove mimetypes according to the capabilities unar has.
Alternatively, one could create multiple .desktop files, one for each utility. User-created .desktop files go in ~/.local/share/applications.