Skip to content

Commit

Permalink
restore permissions video record
Browse files Browse the repository at this point in the history
  • Loading branch information
ygoumaz committed May 2, 2023
1 parent f61272a commit 19de6d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/webots/gui/WbVideoRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,9 @@ void WbVideoRecorder::createMpeg() {
// close file
ffmpegScript.close();

// change file properties
QFile::setPermissions(mScriptPath, QFile::ReadOwner | QFile::WriteOwner | QFile::ExeOwner);

// run script
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
env.insert("AV_LOG_FORCE_COLOR", "1"); // force output message to use ANSI Escape sequences
Expand Down

0 comments on commit 19de6d9

Please sign in to comment.