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

@@ -38,6 +38,7 @@
#include <gui/plugins.h>
#include <driver/screenshot.h>
#include <driver/volume.h>
#include <system/helpers.h>
#include <unistd.h>
#include <stdlib.h>
@@ -175,7 +176,7 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
startposition = 0;
puts("[movieplayer.cpp] executing " MOVIEPLAYER_START_SCRIPT ".");
if (system(MOVIEPLAYER_START_SCRIPT) != 0)
if (my_system(MOVIEPLAYER_START_SCRIPT,NULL,NULL) != 0)
perror(MOVIEPLAYER_START_SCRIPT " failed");
isMovieBrowser = false;
@@ -213,7 +214,7 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
bookmarkmanager->flush();
puts("[movieplayer.cpp] executing " MOVIEPLAYER_END_SCRIPT ".");
if (system(MOVIEPLAYER_END_SCRIPT) != 0)
if (my_system(MOVIEPLAYER_END_SCRIPT,NULL,NULL) != 0)
perror(MOVIEPLAYER_END_SCRIPT " failed");
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);