Include data directory in /usr/share/tvheadend so default opentv config exists.

This commit is contained in:
Adam Sutton 2012-06-29 14:30:19 +01:00
parent 3af5f7182c
commit 41505f22fd
3 changed files with 2 additions and 3 deletions

View file

@ -28,7 +28,7 @@ CFLAGS += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
CFLAGS += -Wmissing-prototypes -fms-extensions
LDFLAGS += -lrt -ldl
BUNDLES += docs/html docs/docresources src/webui/static
BUNDLES += docs/html docs/docresources src/webui/static data
#
# Core

View file

@ -836,7 +836,7 @@ void opentv_init ( void )
/* Load dictionaries */
if ((m = hts_settings_load("epggrab/opentv/dict")))
_opentv_dict_load(m);
if ((m = hts_settings_load("%sdata/epggrab/opentv/dict", dr)))
if ((m = hts_settings_load("%s/data/epggrab/opentv/dict", dr)))
_opentv_dict_load(m);
tvhlog(LOG_INFO, "opentv", "dictonaries loaded");

View file

@ -7,7 +7,6 @@ const char *tvheadend_dataroot(void)
static char cwd[256] = { 0 };
if (!*cwd) {
assert(getcwd(cwd, 254));
strcat(cwd, "/");
}
return cwd;
}