From 2ad46dac70882e31580d484e6ed74a1f23910a2a Mon Sep 17 00:00:00 2001 From: Vincent-FK Date: Tue, 20 Apr 2021 10:45:16 +0200 Subject: [PATCH] system instead of pclose --- src/launcher.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/launcher.cpp b/src/launcher.cpp index 2500468f..72268f6d 100644 --- a/src/launcher.cpp +++ b/src/launcher.cpp @@ -35,10 +35,7 @@ void Launcher::exec() FILE *fp; /* Start audio amp */ - fp = popen(SHELL_CMD_TURN_AMPLI_ON, "r"); - if (fp != NULL) { - pclose(fp); - } + system(SHELL_CMD_TURN_AMPLI_ON); if (consoleApp) { #ifdef BIND_CONSOLE