Permalink
Browse files

Make sure that the EasyPBI build process unsets LD_LIBRARY_PATH befor…

…e starting the process (should let builds work when EasyPBI was installed as a PBI)
  • Loading branch information...
1 parent eab52f5 commit 9bdcc26b23f5b6b59bc49772914f95829e150aee Ken Moore committed Jun 3, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 src-qt4/EasyPBI/mainGUI.cpp
@@ -1414,7 +1414,10 @@ void MainGUI::on_push_build_start_clicked(){
//Setup Process connections
p = new QProcess(this);
p->setProcessChannelMode(QProcess::MergedChannels);
- p->setProcessEnvironment( QProcessEnvironment::systemEnvironment() );
+ QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
+ env.remove("LD_LIBRARY_PATH");
+ p->setProcessEnvironment( env );
+ p->setWorkingDirectory(QDir::homePath());
connect(p,SIGNAL(readyReadStandardOutput()),this,SLOT(slotUpdatePBIBuild()) );
connect(p,SIGNAL(finished(int,QProcess::ExitStatus)),this,SLOT(slotPBIbuildFinished(int,QProcess::ExitStatus)) );
connect(p,SIGNAL(error(QProcess::ProcessError)),this,SLOT(slotBuildError(QProcess::ProcessError)) );

0 comments on commit 9bdcc26

Please sign in to comment.