aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoni Rabkin <yoni@rabkins.net>2018-06-27 08:04:27 -0400
committerYoni Rabkin <yoni@rabkins.net>2018-06-27 08:04:27 -0400
commit45ee4c54ea4311533c764d7b617b845394c82ae4 (patch)
tree0d04197b80cdf81a30d77ab7acfdb1f5c6fde7c8
parent9f9a9b81f741692f2d188d1b46e72f2b6db8a9a1 (diff)
* lisp/emms-player-mpv.el: ensure mpv socket
Make sure directory for mpv socket exists (Daniel Kraus)
-rw-r--r--lisp/emms-player-mpv.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emms-player-mpv.el b/lisp/emms-player-mpv.el
index 2cee864..4ddf843 100644
--- a/lisp/emms-player-mpv.el
+++ b/lisp/emms-player-mpv.el
@@ -359,6 +359,8 @@ Signals error if mkfifo exits with non-zero code."
MEDIA-ARGS are used instead of --idle, if specified."
(emms-player-mpv-proc-stop)
(when (emms-player-mpv-ipc-fifo-p)
+ (unless (file-directory-p (file-name-directory emms-player-mpv-ipc-socket))
+ (make-directory (file-name-directory emms-player-mpv-ipc-socket)))
(emms-player-mpv-proc-init-fifo emms-player-mpv-ipc-socket))
(let*
((argv emms-player-mpv-parameters)