[PC-BSD Commits] r1286 - pbibuild/pbi-source/PBIsource
svn at pcbsd.org
svn at pcbsd.org
Wed Jan 30 18:42:15 PST 2008
Author: kris
Date: 2008-01-30 18:42:15 -0800 (Wed, 30 Jan 2008)
New Revision: 1286
Modified:
pbibuild/pbi-source/PBIsource/pbi.ui.h
Log:
Few fixes to PBI installer, save program size in .progsize file and make
sure when launching an application and the end of the install that it is
run as a user insteas of as root
Modified: pbibuild/pbi-source/PBIsource/pbi.ui.h
===================================================================
--- pbibuild/pbi-source/PBIsource/pbi.ui.h 2008-01-31 02:06:14 UTC (rev 1285)
+++ pbibuild/pbi-source/PBIsource/pbi.ui.h 2008-01-31 02:42:15 UTC (rev 1286)
@@ -513,7 +513,17 @@
QDir sbindir;
sbindir.mkdir ( "/Programs/" + ProgDirName + "/.sbin", TRUE );
+ // Now save the new config file
+ QString sizestring;
+ QFile sizefile( "/Programs/" + ProgDirName + "/.progsize" );
+ if ( sizefile.open( IO_WriteOnly ) ) {
+ QTextStream sizestream( &sizefile );
+ sizestream << "PROGSIZE: ";
+ sizestream << sizestring.setNum(ProgSize);
+ sizefile.close();
+ }
+
// Starts creating the scripts for each EXE
i = 0;
@@ -1973,7 +1983,8 @@
QFile file( "postClose.sh" );
if ( file.open( IO_WriteOnly ) ) {
QTextStream stream( &file );
- stream << "#!/bin/sh\n" + LaunchClose + "&";
+ stream << "#!/bin/sh\n";
+ stream << "su " + RealUserName + " -c \"dcop klauncher klauncher 'exec_blind(QCString,QValueList<QCString>)' " + LaunchClose + " [ ]\"";
file.close();
}
system("chmod 755 postClose.sh" );
More information about the Commits
mailing list