mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-15 09:23:43 +02:00
neutrino: fix file locations. use the predetermined CONFIGDIR instead of hardcoding paths.
This commit is contained in:
@@ -91,7 +91,7 @@ int CKeybindSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
CFileFilter fileFilter;
|
||||
fileFilter.addFilter("conf");
|
||||
fileBrowser.Filter = &fileFilter;
|
||||
if (fileBrowser.exec("/var/tuxbox/config") == true) {
|
||||
if (fileBrowser.exec(CONFIGDIR "") == true) {
|
||||
CNeutrinoApp::getInstance()->loadKeys(fileBrowser.getSelectedFile()->Name.c_str());
|
||||
printf("[neutrino keybind_setup] new keys: %s\n", fileBrowser.getSelectedFile()->Name.c_str());
|
||||
}
|
||||
|
@@ -163,7 +163,7 @@ void COsdLangSetup::showLanguageSetup(CMenuWidget *osdl_setup)
|
||||
struct dirent **namelist;
|
||||
int n;
|
||||
// printf("scanning locale dir now....(perhaps)\n");
|
||||
char *pfad[] = {(char *) DATADIR "/neutrino/locale",(char *) "/var/tuxbox/config/locale"};
|
||||
char *pfad[] = {(char *) DATADIR "/neutrino/locale",(char *) CONFIGDIR "/locale"};
|
||||
|
||||
osdl_setup->addIntroItems();
|
||||
|
||||
|
@@ -71,7 +71,7 @@ int CSettingsManager::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
{
|
||||
fileFilter.addFilter("conf");
|
||||
fileBrowser.Filter = &fileFilter;
|
||||
if (fileBrowser.exec("/var/tuxbox/config") == true)
|
||||
if (fileBrowser.exec(CONFIGDIR "") == true)
|
||||
{
|
||||
CNeutrinoApp::getInstance()->loadSetup(fileBrowser.getSelectedFile()->Name.c_str());
|
||||
CColorSetupNotifier *colorSetupNotifier = new CColorSetupNotifier;
|
||||
|
@@ -101,7 +101,7 @@ int CStartUpWizard::exec(CMenuTarget* parent, const string & /*actionKey*/)
|
||||
}
|
||||
bool init_settings = false;
|
||||
if (CFEManager::getInstance()->haveSat())
|
||||
init_settings = file_exists("/var/tuxbox/config/initial/");
|
||||
init_settings = file_exists(CONFIGDIR "/initial/");
|
||||
|
||||
if(init_settings && (res != menu_return::RETURN_EXIT_ALL))
|
||||
{
|
||||
|
Reference in New Issue
Block a user