Skip to content

Stop yazi from opening extracted directory in GUI file Manager #1663

Discussion options

You must be logged in to vote

After reading through the docs and some reddit posts, i found the issue.

The issue was mime-type:

❯ file -i sdsdsd_20240917075618.tar.gz
sdsdsd_20240917075618.tar.gz: application/x-gzip; charset=binary

In this Oracle Linux Distribution, the mime-type is still being used as application/x-gzip, while on my personal linux machine it is application/gzip

yazi doesn't have any handling for application/x-gzip mime-type in [open] rules in file : https://github.com/sxyazi/yazi/blob/shipped/yazi-config/preset/yazi.toml

So, i needed to add this to my config:

prepend_rules = [
	# Archive
    { mime = "application/x-gzip", use = [ "extract", "reveal" ] },
]

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@himanshugoswamiii
Comment options

@himanshugoswamiii
Comment options

Answer selected by himanshugoswamiii
@sxyazi
Comment options

@himanshugoswamiii
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants