mink0 / mu-player

Music player that plays vk.com and soundcloud.com and search with lastfm.com
5 stars 2 forks source link

Run mpd programmatically #1

Closed ewnd9 closed 8 years ago

ewnd9 commented 8 years ago

"Start MPD daemon. Test if it is running by typing telnet localhost 6600. You should see OK MPD response." You could run mpd via child_process api and check if it is already running via telnet or ps command. Also, you could show instruction how to install mpd if mpd executable is not found :)

mink0 commented 8 years ago

Thanks for the insight, @ewnd9! Actually MPD is installed as autostarting service in Linux. So no need to start it manually from the application. As for the OS X: yes, no autostart by default after installing it via homebrew and yes, mpd is halting sometimes on OS X.

First, I will check if MPD is running on app start and add more descriptive error message. Second, I need to reconnect my client if connection is lost. I will do it later if somebody will ask me about it.

mink0 commented 8 years ago

Added error message in d0e699c2d08a83c12800e266f027241b6c934129