neutrino: fix most hardcoded paths

Conflicts:
	src/eitd/SIlanguage.cpp
	src/eitd/SIlanguage.hpp
	src/gui/bookmarkmanager.h
	src/gui/keybind_setup.cpp
	src/gui/settings_manager.cpp
	src/nhttpd/yconfig.h
	src/nhttpd/yhttpd_mods/Makefile.am
	src/system/localize.cpp
This commit is contained in:
Stefan Seyfried
2013-03-10 02:01:52 +01:00
committed by [CST] Focus
parent 0d2c3f3f10
commit 166e403965
11 changed files with 13 additions and 11 deletions

View File

@@ -459,7 +459,7 @@ void CPictureViewer::getSize(const char* name, int* width, int *height)
}
}
#define LOGO_DIR1 "/share/tuxbox/neutrino/icons/logo"
#define LOGO_DIR1 DATADIR "/neutrino/icons/logo"
#define LOGO_FMT ".jpg"
bool CPictureViewer::GetLogoName(uint64_t channel_id, std::string ChannelName, std::string & name, int *width, int *height)

View File

@@ -36,8 +36,6 @@
#include "SIlanguage.hpp"
static const char LANGUAGEFILE[] = CONFIGDIR "/epglanguages.conf";
std::vector<std::string> SIlanguage::languages;
pthread_mutex_t SIlanguage::languages_lock = PTHREAD_MUTEX_INITIALIZER;

View File

@@ -29,6 +29,8 @@
#include <sectionsdclient/sectionsdclient.h>
#define LANGUAGEFILE CONFIGDIR "/epglanguages.conf"
class SIlanguage {
public:
static void filter(const std::map<std::string, std::string>& s, int max, std::string& retval);

View File

@@ -43,7 +43,7 @@
#include <gui/widget/menue.h>
#define MAXBOOKMARKS 10
#define BOOKMARKFILE CONFIGDIR"/bookmarks"
#define BOOKMARKFILE CONFIGDIR "/bookmarks"
class CBookmark
{

View File

@@ -91,7 +91,7 @@ int CKeybindSetup::exec(CMenuTarget* parent, const std::string &actionKey)
CFileFilter fileFilter;
fileFilter.addFilter("conf");
fileBrowser.Filter = &fileFilter;
if (fileBrowser.exec(CONFIGDIR "") == 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());
}

View File

@@ -71,7 +71,7 @@ int CSettingsManager::exec(CMenuTarget* parent, const std::string &actionKey)
{
fileFilter.addFilter("conf");
fileBrowser.Filter = &fileFilter;
if (fileBrowser.exec(CONFIGDIR "") == true)
if (fileBrowser.exec(CONFIGDIR) == true)
{
CNeutrinoApp::getInstance()->loadSetup(fileBrowser.getSelectedFile()->Name.c_str());
CColorSetupNotifier *colorSetupNotifier = new CColorSetupNotifier;

View File

@@ -118,7 +118,7 @@
// switch for Box differences
#ifdef CONFIG_SYSTEM_TUXBOX
#define AUTHPASSWORD "dbox2"
#define PRIVATEDOCUMENTROOT DATADIR"/httpd-y"
#define PRIVATEDOCUMENTROOT DATADIR "/neutrino/httpd-y"
#endif
#ifdef CONFIG_SYSTEM_TUXBOX_COOLSTREAM

View File

@@ -1,5 +1,5 @@
INCLUDES = \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/src/zapit/include \
-I$(top_srcdir)/src \

View File

@@ -3,6 +3,8 @@
// yParser
//=============================================================================
// C
#include <config.h>
#include <cstdlib>
#include <cstring>
#include <stdio.h>

View File

@@ -111,7 +111,7 @@ CLocaleManager::~CLocaleManager()
delete[] defaultData;
}
const char * path[2] = {CONFIGDIR "/locale/", DATADIR "/neutrino/locale/"};
const char * path[2] = { CONFIGDIR "/locale/", DATADIR "/neutrino/locale/"};
CLocaleManager::loadLocale_ret_t CLocaleManager::loadLocale(const char * const locale, bool asdefault)
{

View File

@@ -21,8 +21,8 @@
#define PAL 0
#define NTSC 1
#define AUDIO_CONFIG_FILE "/var/tuxbox/config/zapit/audio.conf"
#define VOLUME_CONFIG_FILE "/var/tuxbox/config/zapit/volume.conf"
#define AUDIO_CONFIG_FILE CONFIGDIR "/zapit/audio.conf"
#define VOLUME_CONFIG_FILE CONFIGDIR "/zapit/volume.conf"
typedef std::map<t_channel_id, audio_map_set_t> audio_map_t;
typedef audio_map_t::iterator audio_map_iterator_t;