Opening x-executables in yazi #2127
-
What system are you running Yazi on?Linux Wayland What terminal are you running Yazi in?kitty 0.38.1
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
This mimetype is wrong, Yazi doesn't use |
Beta Was this translation helpful? Give feedback.
-
@sxyazi Now I have
But it still just "downloads" the executable in the browser. Running |
Beta Was this translation helpful? Give feedback.
-
No, this is not valid shell syntax. Running $ sh -c './$0' /tmp/my-executable.sh
/tmp/my-executable.sh: .//tmp/my-executable.sh: No such file or directory What you need is $ sh -c '"$0"' /tmp/my-executable.sh
Works!!! See #1673 (comment) |
Beta Was this translation helpful? Give feedback.
No, this is not valid shell syntax.
Running
sh -c './$0' /tmp/my-executable.sh
will cause an error:$ sh -c './$0' /tmp/my-executable.sh /tmp/my-executable.sh: .//tmp/my-executable.sh: No such file or directory
What you need is
run = '"$0"'
:See #1673 (comment)