From 45ee4c54ea4311533c764d7b617b845394c82ae4 Mon Sep 17 00:00:00 2001 From: Yoni Rabkin Date: Wed, 27 Jun 2018 08:04:27 -0400 Subject: * lisp/emms-player-mpv.el: ensure mpv socket Make sure directory for mpv socket exists (Daniel Kraus) --- lisp/emms-player-mpv.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lisp/emms-player-mpv.el') 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) -- cgit v1.2.3