mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-10 16:19:54 +00:00
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;
|
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
|
//Create working threads
|
||||||
pthread_t mpd_client_thread, web_server_thread, mympd_api_thread;
|
pthread_t mpd_client_thread, web_server_thread, mympd_api_thread;
|
||||||
//mpd connection
|
//mpd connection
|
||||||
|
Loading…
Reference in New Issue
Block a user