mirror of https://github.com/SuperBFG7/ympd
Fix: check for syscmds directory
This commit is contained in:
parent
dbfdef524d
commit
c5cac48ac7
|
@ -368,6 +368,14 @@ int main(int argc, char **argv) {
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
if (config->syscmds == true) {
|
||||
snprintf(testdirname, 400, "%s/syscmds", config->etcdir);
|
||||
if (!testdir("Syscmds directory", testdirname)) {
|
||||
printf("Disabling syscmd support\n");
|
||||
config->syscmds = false;
|
||||
}
|
||||
}
|
||||
|
||||
//Create working threads
|
||||
pthread_t mpd_client_thread, web_server_thread, mympd_api_thread;
|
||||
//mpd connection
|
||||
|
|
Loading…
Reference in New Issue