diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index c8d8fdef5..5b4f8e2d1 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -2575,10 +2575,10 @@ bool CMovieBrowser::delFile_vlc(CFile& /*file*/) bool CMovieBrowser::delFile_std(CFile& file) { bool result = true; - char buf[FILENAME_MAX]={0}; - snprintf(buf,sizeof(buf), "nice -n 20 rm -f \"%s\" &", file.Name.c_str()); - system(buf); + int errno = unlink(file.Name.c_str()); TRACE(" delete file: %s\r\n",file.Name.c_str()); + if(errno) + result = false; return(result); }