start SCRIPTs with-my_system

Origin commit data
------------------
Branch: ni/coolstream
Commit: 3389defb17
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-09-11 (Tue, 11 Sep 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-09-11 20:33:34 +02:00
parent 67c5d7c91e
commit 41fbcb0970
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();
}