Changeset 14a2c02


Ignore:
Timestamp:
Dec 3, 2013 9:26:31 AM (5 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1
Children:
c2eb399
Parents:
e88951d
Message:

Adjust the location of the new PCDM defaultInputs file to /var/db/pcdm/defaultInputs

File:
1 edited

Legend:

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

    rf2fe669 r14a2c02  
    230230  //Check for sample files 
    231231  if(!mainDir.exists("pcdm.conf.sample")){ QFile::copy(":samples/pcdm.conf",base+"/pcdm.conf.sample"); }  
     232  //Check for the PCDM runtime directory 
     233  mainDir.cd("/var/db/pcdm"); 
     234  if(!mainDir.exists()){ mainDir.mkdir("/var/db/pcdm"); } 
    232235} 
    233236 
     
    263266    keyvariant = ""; 
    264267  //Read the current inputs file and overwrite default values 
    265   QFile file("/usr/local/share/PCDM/.defaultInputs"); 
     268  QFile file("/var/db/pcdm/defaultInputs"); 
    266269  bool goodFile=false; 
    267270  if(file.exists()){ 
     
    287290 
    288291void Backend::saveDefaultSysEnvironment(QString lang, QString keymodel, QString keylayout, QString keyvariant){ 
    289   QFile file("/usr/local/share/PCDM/.defaultInputs"); 
     292  QFile file("/var/db/pcdm/defaultInputs"); 
    290293    if(file.open(QIODevice::WriteOnly | QIODevice::Text) ){ 
    291294      QTextStream out(&file); 
Note: See TracChangeset for help on using the changeset viewer.