Ticket #2622: mythtv-GetInstallPrefix_for_mfdb_path.patch

File mythtv-GetInstallPrefix_for_mfdb_path.patch, 1.5 KB (added by sphery <mtdean@…>, 13 years ago)
  • programs/mythbackend/housekeeper.cpp

     
    281281    QString mflog = gContext->GetSetting("MythFillDatabaseLog",
    282282                                         "/var/log/mythfilldatabase.log");
    283283
     284    if (mfpath == "mythfilldatabase")
     285        mfpath = gContext->GetInstallPrefix() + "/bin/mythfilldatabase";
     286
    284287    if (mflog == "")
    285288        command = QString("%1 %2").arg(mfpath).arg(mfarg);
    286289    else
  • programs/mythfrontend/globalsettings.cpp

     
    29192919static GlobalLineEdit *MythFillDatabasePath()
    29202920{
    29212921    GlobalLineEdit *be = new GlobalLineEdit("MythFillDatabasePath");
    2922     be->setLabel(QObject::tr("mythfilldatabase Path"));
    2923     be->setValue(gContext->GetInstallPrefix() + "/bin/mythfilldatabase");
    2924     be->setHelpText(QObject::tr("Path (including executable) of the "
    2925                     "mythfilldatabase program."));
     2922    be->setLabel(QObject::tr("mythfilldatabase Program"));
     2923    be->setValue("mythfilldatabase");
     2924    be->setHelpText(QObject::tr("Use 'mythfilldatabase' or the name of a "
     2925                    "custom script that will populate the program guide info "
     2926                    "for you."));
    29262927    return be;
    29272928}
    29282929