« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/play.js6
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 {