mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-23 15:51:03 +00:00
fix: respect user's system media opener instead of hardcoding mpv (#2959)
Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
parent
917e1f54a1
commit
5f7c0e813f
1 changed files with 4 additions and 2 deletions
|
|
@ -52,8 +52,10 @@ extract = [
|
|||
{ run = 'ya pub extract --list %*', desc = "Extract here", for = "windows" },
|
||||
]
|
||||
play = [
|
||||
{ run = 'mpv --force-window "$@"', orphan = true, for = "unix" },
|
||||
{ run = 'mpv --force-window %*', orphan = true, for = "windows" },
|
||||
{ run = 'xdg-open "$1"', desc = "Play", for = "linux" },
|
||||
{ run = 'open "$@"', desc = "Play", for = "macos" },
|
||||
{ run = 'start "" "%1"', orphan = true, desc = "Play", for = "windows" },
|
||||
{ run = 'termux-open "$1"', desc = "Play", for = "android" },
|
||||
{ run = '''mediainfo "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show media info", for = "unix" },
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue