site  contact  subhomenews

Mime handling for zstd

July 11, 2020 — BarryK

EasyOS has the zstd utility, however lacks proper mime handling. Like, assigning a mime-type, handling when click on a .zst or .zstd file, support in Xarchive.

I have run out of steam to explain all the changes, just take it as done.

Zstd mime type:

Thanks to peebee for zstd support in Xarchive:

...I only used the Xarchive wrapper, usr/lib/x86_64-linux-gnu/xarchive/wrappers/, from peebee's tarball. All of the mime-handling I implemented independently.

Note, /usr/local/bin/ has been expanded to handle all tarball types, that is, .tar.gz, .tgz, .tar.xz, .txz, .tar.bz2, .tbz2, .tar.zstd, .tar.zst. A left mouse click on any of these file types will run 'pkghandler', which tests whether the tarball is a binary package (is not a source package) and if so, asks if want to install it or open it in Xarchive. If not a binary package, immediately opens in Xarchive.   

Tags: easy