lisp/mpc.el (mpc-file-local-copy): check for absolute path
This commit is contained in:
parent
2a79268725
commit
2cf2b19985
1 changed files with 2 additions and 1 deletions
|
@ -909,7 +909,8 @@ If PLAYLIST is t or nil or missing, use the main playlist."
|
|||
(defun mpc-file-local-copy (file)
|
||||
;; Try to set mpc-mpd-music-directory.
|
||||
(when (and (null mpc-mpd-music-directory)
|
||||
(string-match "\\`localhost" mpc-host))
|
||||
(or (string-match "\\`localhost" mpc-host)
|
||||
(file-name-absolute-p mpc-host)))
|
||||
(let ((files `(,(let ((xdg (getenv "XDG_CONFIG_HOME")))
|
||||
(concat (if (and xdg (file-name-absolute-p xdg))
|
||||
xdg "~/.config")
|
||||
|
|
Loading…
Add table
Reference in a new issue