Page 2 of 2

How to extend Xarchive for tar.zst archives??

Posted: Thu 16 Jan 2020, 17:27
by peebee
New post to a very old thread.........

http://distro.ibiblio.org/puppylinux/pe ... mmon32.pet

http://distro.ibiblio.org/puppylinux/pe ... mmon64.pet

Packages are starting to appear from Arch Linux using zstd compression - tar.zst archives.

Xarchive needs to be extended with a new wrapper to cope with these new files....see below

Thanks
peebee

Posted: Thu 16 Jan 2020, 22:54
by Dry Falls
Hi Peebee.

What I did was...

Code: Select all

mkdir /root/.config/rox.sourceforge.net/OpenWith/.application_x-zstd-compressed-tar
and symlink Xarchiver.desktop there and also /usr/local/bin/ExtractWithXarchiver.

ExtractWithXarchiver:

Code: Select all

#!/bin/sh
/usr/bin/xarchiver -e "$@"
You can make pet or pkg (from pkgtools) from there.

df

edit: Ah, you're looking for an entry in /usr/local/lib/xarchive/
Sorry, good question.

Zstandard integration

Posted: Sun 19 Jan 2020, 16:31
by peebee
Only works if your system has the zstd binary.... check with

Code: Select all

which zstd
before installing. (LxPupSc and ScPup have zstd but don't think any other pup does....)

Changes or adds the following files (which are spread all over the Woof-CE build system):
/etc/
/etc/xdg/
/etc/xdg/rox.sourceforge.net/
/etc/xdg/rox.sourceforge.net/MIME-types/
/etc/xdg/rox.sourceforge.net/MIME-types/application_x-archlinux-package-zst
/etc/xdg/rox.sourceforge.net/MIME-types/application_x-zstd-compressed-tar
/root/
/root/.config/
/root/.config/rox.sourceforge.net/
/root/.config/rox.sourceforge.net/OpenWith/
/root/.config/rox.sourceforge.net/OpenWith/.application_x-zstd/
/root/.config/rox.sourceforge.net/OpenWith/.application_x-zstd/Add Bookmark
/root/.config/rox.sourceforge.net/OpenWith/.application_x-zstd-compressed-tar/
/root/.config/rox.sourceforge.net/OpenWith/.application_x-zstd-compressed-tar/Add Bookmark
/root/.config/rox.sourceforge.net/OpenWith/.application_x-zstd-compressed-tar/pupMd5sum
/root/.config/rox.sourceforge.net/OpenWith/.application_x-zstd/pupMd5sum
/usr/
/usr/bin/
/usr/bin/pcompress
/usr/bin/pextract
/usr/lib/
/usr/lib/xarchive/
/usr/lib/xarchive/wrappers/
/usr/lib/xarchive/wrappers/tar-wrap.sh
/usr/share/
/usr/share/applications/
/usr/share/applications/mimeapps.list
/usr/share/applications/pextract.desktop
/usr/share/icons/
/usr/share/icons/hicolor/
/usr/share/icons/hicolor/scalable/
/usr/share/icons/hicolor/scalable/mimetypes/
/usr/share/icons/hicolor/scalable/mimetypes/application-x-archlinux-package-gz.svg
/usr/share/icons/hicolor/scalable/mimetypes/application-x-archlinux-package-xz.svg
/usr/share/icons/hicolor/scalable/mimetypes/application-x-archlinux-package-zst.svg
/usr/share/icons/hicolor/scalable/mimetypes/application-x-gz-compressed-tar.svg
/usr/share/icons/hicolor/scalable/mimetypes/application-x-gz.svg
/usr/share/icons/hicolor/scalable/mimetypes/application-x-xz-compressed-tar.svg
/usr/share/icons/hicolor/scalable/mimetypes/application-x-xz.svg
/usr/share/icons/hicolor/scalable/mimetypes/application-x-zstd-compressed-tar.svg
/usr/share/icons/hicolor/scalable/mimetypes/application-x-zstd.svg
/usr/share/mime/
/usr/share/mime/application/
/usr/share/mime/application/x-archlinux-package-gz.xml
/usr/share/mime/application/x-archlinux-package-xz.xml
/usr/share/mime/application/x-archlinux-package-zst.xml
/usr/share/mime/application/x-zstd-compressed-tar.xml
/usr/share/mime/application/x-zstd.xml
/usr/share/mime/packages/
/usr/share/mime/packages/puppy.xml