Permalink
Browse files

Adjust the ~/.xprofile timeout to 30 seconds

  • Loading branch information...
1 parent f9457f4 commit 687d9343b47ffbbe32577df715303fcee8460b1f Ken Moore committed Nov 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src-qt4/PCDM/src/pcdm-xprocess.cpp
@@ -161,8 +161,8 @@ bool XProcess::startXSession(){
if(QFile::exists(xhome+"/.xprofile")){
disconnect(SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(slotCleanup(int, QProcess::ExitStatus)) );
this->start("sh "+xhome+"/.xprofile &");//make sure to start it in parallel
- if(!this->waitForFinished(300000) ){
- //If it still has not finished this after 5 minutes, kill it
+ if(!this->waitForFinished(30000) ){
+ //If it still has not finished this after 30 seconds, kill it
this->terminate();
}
connect( this, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(slotCleanup(int, QProcess::ExitStatus)) );

0 comments on commit 687d934

Please sign in to comment.