start SCRIPTs with-my_system

This commit is contained in:
satbaby
2012-09-11 20:33:34 +02:00
parent a3bfab0bcd
commit 3389defb17
6 changed files with 21 additions and 15 deletions

View File

@@ -52,6 +52,7 @@
#include <gui/widget/progressbar.h>
#include <system/settings.h>
#include <system/helpers.h>
#include <global.h>
#include <neutrino.h>
@@ -248,7 +249,7 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey)
if(!manual) {
g_RCInput->close_click();
if (system(NEUTRINO_SCAN_START_SCRIPT) != 0)
if (my_system(NEUTRINO_SCAN_START_SCRIPT,NULL,NULL) != 0)
perror(NEUTRINO_SCAN_START_SCRIPT " failed");
}
@@ -310,7 +311,7 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey)
g_Zapit->stopScan();
if(!manual) {
if (system(NEUTRINO_SCAN_STOP_SCRIPT) != 0)
if (my_system(NEUTRINO_SCAN_STOP_SCRIPT,NULL,NULL) != 0)
perror(NEUTRINO_SCAN_STOP_SCRIPT " failed");
g_RCInput->open_click();
}