Discussion:
[emms-help] [PATCH] lisp/emms-player-mpv.el: Use emms-directory for mpv ipc socket file
Daniel Kraus
2018-06-26 14:30:08 UTC
Permalink
Don't litter mpv ipc files in the users emacs home directory
but put it it emms folder where all other emms related files are.
---
lisp/emms-player-mpv.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emms-player-mpv.el b/lisp/emms-player-mpv.el
index 3cbdd26..2cee864 100644
--- a/lisp/emms-player-mpv.el
+++ b/lisp/emms-player-mpv.el
@@ -117,7 +117,7 @@ support for various feedback and metadata options from mpv."
:group 'emms-player-mpv)

(defcustom emms-player-mpv-ipc-socket
- (expand-file-name (locate-user-emacs-file "emms-player-mpv-ipc.sock"))
+ (concat (file-name-as-directory emms-directory) "mpv-ipc.sock" )
"Unix IPC socket or FIFO to use with mpv --input-* options,
depending on `emms-player-mpv-ipc-method' value and/or mpv version."
:type 'file
--
2.18.0
Yoni Rabkin
2018-06-26 15:38:34 UTC
Permalink
Post by Daniel Kraus
Don't litter mpv ipc files in the users emacs home directory
but put it it emms folder where all other emms related files are.
---
lisp/emms-player-mpv.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emms-player-mpv.el b/lisp/emms-player-mpv.el
index 3cbdd26..2cee864 100644
--- a/lisp/emms-player-mpv.el
+++ b/lisp/emms-player-mpv.el
@@ -117,7 +117,7 @@ support for various feedback and metadata options from mpv."
:group 'emms-player-mpv)
(defcustom emms-player-mpv-ipc-socket
- (expand-file-name (locate-user-emacs-file "emms-player-mpv-ipc.sock"))
+ (concat (file-name-as-directory emms-directory) "mpv-ipc.sock" )
"Unix IPC socket or FIFO to use with mpv --input-* options,
depending on `emms-player-mpv-ipc-method' value and/or mpv version."
:type 'file
--
2.18.0
commited

thank you
--
"Cut your own wood and it will warm you twice"
Loading...