From 7f70ad795385503f6632198b44a41f6bc4e93e6f Mon Sep 17 00:00:00 2001 From: Florrie Date: Mon, 14 Aug 2017 10:07:48 -0300 Subject: Use mpv-nofifo if `mkfifo` command is not found --- src/play.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 { -- cgit 1.3.0-6-gf8a5