Changeset e7fce9d


Ignore:
Timestamp:
05/09/14 10:31:36 (11 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1
Children:
5f42f3f, eaea8ff
Parents:
69399ee
Message:

If the AppCafe? is started as non-root, automatically startup a "pc-su pc-softwaremanager" side process before quitting.

Location:
src-qt4/pc-softwaremanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/main.cpp

    r7d1cdbb re7fce9d  
    1919    if( getuid() != 0){ 
    2020      qDebug() << "pc-softwaremanager must be started as root!"; 
     21      system("pc-su pc-softwaremanager &"); 
    2122      return 1; 
    2223    } 
  • src-qt4/pc-softwaremanager/pbiNgBackend.cpp

    raae0e0b re7fce9d  
    677677   }else if( PROCTYPE==0 && injail && RUNNINGJAILS.contains(PKGJAIL)){ 
    678678     //For installations, make sure the jail pkg config is synced with the current system pkg config 
     679     qDebug() << "Syncing pkg config in jail:" << PKGJAIL; 
     680     emit devMessage( "** Syncing pkg config in jail: " +PKGJAIL+" **" ); 
    679681     Extras::getCmdOutput("pc-updatemanager -j "+RUNNINGJAILS[PKGJAIL]+" syncconf"); 
    680682   } 
     
    693695  
    694696void PBIBackend::procMessage(QString msg){ 
    695   qDebug() << "MSG:" << msg; 
     697  //qDebug() << "MSG:" << msg; 
    696698  PROCLOG << msg;   //save full message to the log for later 
    697699  QString tmp; 
Note: See TracChangeset for help on using the changeset viewer.