我有一些音乐文件~/Music
:
sunqingyao@sunqingyao-MacBookAir:~$ ls /home/sunqingyao/Music
Bastion Original Soundtrack This War of Mine OST
Beholder OST Titan Souls Special Edition Content
Hyper Light Drifter soundtrack Transistor Soundtrack
Stellaris soundtrack
成功完成后sudo apt install ncmpcpp mpd
,我尝试配置它们。
~/.ncmpcpp/config
:
mpd_host = localhost
mpd_port = 6600
mpd_music_dir = /home/sunqingyao/Music
/etc/mpd.conf
:
music_directory "/home/sunqingyao/Music"
......
然后我用 启动了音乐播放器sudo service mpd restart && ncmpcpp
,但似乎mpd
找不到我的歌曲。
答案1
我自己已经想通了:你应该使用
mpd_music_dir = "/home/sunqingyao/Music"
代替
mpd_music_dir = /home/sunqingyao/Music
引号不能省略。