Changeset 35b47b7


Ignore:
Timestamp:
01/27/14 12:33:45 (6 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2
Children:
a24a288
Parents:
b8b95c8
Message:

Make sure that ~/.xprofile is executable and run in the same command string as the main desktop session for PCDM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/pcdm-xprocess.cpp

    r18c6ea0 r35b47b7  
    143143  if(QFile::exists(xhome+"/.xprofile")){ 
    144144    qDebug() << "Run user ~/.xprofile"; 
    145     this->start("sh "+xhome+"/.xprofile");//Cannot start in parallel if it sets env variables 
    146     if(!this->waitForFinished(30000) ){ 
    147       //If it still has not finished this after 30 seconds, kill it 
    148       this->terminate(); 
    149     } 
     145    cmd.prepend(". "+xhome+"/.xprofile; "); 
     146    //Make sure it has executable permissions 
     147    QFile::setPermissions(xhome+"/.xprofile", QFile::permissions(xhome+"/.xprofile") | QFile::ExeOwner); 
    150148  } 
    151149  connect( this, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(slotCleanup()) ); 
Note: See TracChangeset for help on using the changeset viewer.