alexander-yakushev / awesompd

Advanced mpd widget for Awesome WM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when changing tracks

saucyfox opened this issue · comments

I get the following error whenever MPD changes tracks:

/home/user/.config/awesome/awesompd/awesompd.lua:1162: bad argument #1 to 'find' (string expected, got nil)

I'm not exactly sure what the problem is. The lines it's referring to are:

local _, _, music_folder = string.find(
    self.pread('cat ' .. self.mpd_config .. ' | grep -v "#" | grep music_directory', "*line"),
    'music_directory%s+"(.+)"')

Do you have mywidget.mpd_config = "/path/to/.mpdconf" set up in your awesompd initialization?

Ah...typo on my part. Not sure how I missed that. I accidentally set it to ~/.config/mpd.conf instead of ~/.config/mpd/mpd.conf.

Sorry about that.

No problem, glad it was resolved!