From a2b262551714a6ce50655737b7a52da385e35fbf Mon Sep 17 00:00:00 2001 From: Tom M Date: Sun, 7 Mar 2021 10:54:31 +0100 Subject: [PATCH] Silence annoying 'non-existing shell command file' error (#794) --- src/fluidsynth.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fluidsynth.c b/src/fluidsynth.c index a601eaca..856d58d0 100644 --- a/src/fluidsynth.c +++ b/src/fluidsynth.c @@ -853,6 +853,12 @@ int main(int argc, char **argv) { config_file = fluid_get_sysconf(buf, sizeof(buf)); } + + /* if the automatically selected command file does not exist, do not even attempt to open it */ + if(!g_file_test(config_file, G_FILE_TEST_EXISTS)) + { + config_file = NULL; + } } /* Handle set commands before creating the synth */