mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
start SCRIPTs with-my_system
This commit is contained in:
@@ -40,13 +40,15 @@
|
||||
#include <neutrino.h>
|
||||
#include <gui/filebrowser.h>
|
||||
#include <gui/movieplayer.h>
|
||||
#include <gui/nfs.h>
|
||||
#include <gui/widget/hintbox.h>
|
||||
#include <gui/widget/messagebox.h>
|
||||
#include <gui/widget/mountchooser.h>
|
||||
#include <daemonc/remotecontrol.h>
|
||||
#include <system/setting_helpers.h>
|
||||
#include <system/fsmounter.h>
|
||||
#include <gui/nfs.h>
|
||||
#include <system/helpers.h>
|
||||
|
||||
|
||||
#include <driver/record.h>
|
||||
#include <zapit/capmt.h>
|
||||
@@ -1452,7 +1454,7 @@ bool CRecordManager::RunStartScript(void)
|
||||
return false;
|
||||
|
||||
puts("[neutrino.cpp] executing " NEUTRINO_RECORDING_START_SCRIPT ".");
|
||||
if (system(NEUTRINO_RECORDING_START_SCRIPT) != 0) {
|
||||
if (my_system(NEUTRINO_RECORDING_START_SCRIPT,NULL,NULL) != 0) {
|
||||
perror(NEUTRINO_RECORDING_START_SCRIPT " failed");
|
||||
return false;
|
||||
}
|
||||
@@ -1466,7 +1468,7 @@ bool CRecordManager::RunStopScript(void)
|
||||
return false;
|
||||
|
||||
puts("[neutrino.cpp] executing " NEUTRINO_RECORDING_ENDED_SCRIPT ".");
|
||||
if (system(NEUTRINO_RECORDING_ENDED_SCRIPT) != 0) {
|
||||
if (my_system(NEUTRINO_RECORDING_ENDED_SCRIPT,NULL,NULL) != 0) {
|
||||
perror(NEUTRINO_RECORDING_ENDED_SCRIPT " failed");
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user