[PC-BSD Commits] r21082 - pcbsd/current/src-qt4/EasyPBI

svn at pcbsd.org svn at pcbsd.org
Mon Jan 21 10:48:30 PST 2013


Author: kenmoore
Date: 2013-01-21 18:48:30 +0000 (Mon, 21 Jan 2013)
New Revision: 21082

Modified:
   pcbsd/current/src-qt4/EasyPBI/modBuild.cpp
Log:
Fix a bug with executable permissions for new wrapper scripts in EasyPBI



Modified: pcbsd/current/src-qt4/EasyPBI/modBuild.cpp
===================================================================
--- pcbsd/current/src-qt4/EasyPBI/modBuild.cpp	2013-01-21 18:36:13 UTC (rev 21081)
+++ pcbsd/current/src-qt4/EasyPBI/modBuild.cpp	2013-01-21 18:48:30 UTC (rev 21082)
@@ -767,6 +767,8 @@
     form << "#Now start the main application";
     form << "${PROGDIR}/${APPBINARY} $@";
     status = createFile(newResourcePath,form);
+    //Make sure the new wrapper is executable
+    QFile::setPermissions(newResourcePath, QFile::ReadOwner | QFile::ExeOwner | QFile::WriteOwner  | QFile::ReadGroup | QFile::ExeGroup  | QFile::WriteGroup | QFile::ReadOther | QFile::ExeOther);
   }else{
     //Copy the given file into the module
     if( !QFile::copy(resourcePath,newResourcePath) ){



More information about the Commits mailing list