{"action":"closed","issue":{"url":"https://api.github.com/repos/karlstav/cava/issues/45","labels_url":"https://api.github.com/repos/karlstav/cava/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/karlstav/cava/issues/45/comments","events_url":"https://api.github.com/repos/karlstav/cava/issues/45/events","html_url":"https://github.com/karlstav/cava/issues/45","id":95468821,"number":45,"title":"Target 'copyconf' fails if config-path does not exist.","user":{"login":"phijor","id":10487782,"avatar_url":"https://avatars.githubusercontent.com/u/10487782?v=3","gravatar_id":"","url":"https://api.github.com/users/phijor","html_url":"https://github.com/phijor","followers_url":"https://api.github.com/users/phijor/followers","following_url":"https://api.github.com/users/phijor/following{/other_user}","gists_url":"https://api.github.com/users/phijor/gists{/gist_id}","starred_url":"https://api.github.com/users/phijor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phijor/subscriptions","organizations_url":"https://api.github.com/users/phijor/orgs","repos_url":"https://api.github.com/users/phijor/repos","events_url":"https://api.github.com/users/phijor/events{/privacy}","received_events_url":"https://api.github.com/users/phijor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-16T16:10:04Z","updated_at":"2015-07-16T21:28:50Z","closed_at":"2015-07-16T21:28:50Z","body":"When trying to compile `cava` without having a path to the config-file, `cp` fails with the following message:\r\n\r\n```\r\ncp: cannot create regular file ‘/home/phijor/.config/cava/config’: No such file or directory\r\n```\r\n\r\nSteps to reproduce:\r\n\r\n1. `rm -r ~/.config/cava` (that's where the config should up for me, because `$XDG_CONFIG_HOME` isn't set on my machine).\r\n2. `make`.\r\n3. See it fail.\r\n\r\nI will try to fix the issue, shouldn't be to difficult. I think it's the best if `$CONFIGDIR` actually contains the directory the config will reside in, not the absolute path to the file itself. That way one can check if it actually exists before trying to put something in it."}}