diff options
author | Florrie <towerofnix@gmail.com> | 2017-08-14 10:07:48 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2017-08-14 10:10:02 -0300 |
commit | 7f70ad795385503f6632198b44a41f6bc4e93e6f (patch) | |
tree | 51c9580b9edb4184c9adb4373e2c1ea1f47a1a06 /src | |
parent | 3f7bdfd702e47e7063c5fc31a1279c3cd3065fce (diff) |
Use mpv-nofifo if `mkfifo` command is not found
Diffstat (limited to 'src')
-rwxr-xr-x | src/play.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/play.js b/src/play.js index 980a755..5d41bb9 100755 --- a/src/play.js +++ b/src/play.js @@ -43,7 +43,11 @@ function clearConsoleLine() { async function determineDefaultPlayer() { if (await commandExists('mpv')) { - return 'mpv' + if (await commandExists('mkfifo')) { + return 'mpv' + } else { + return 'mpv-nofifo' + } } else if (await commandExists('play')) { return 'play' } else { |