Include data directory in /usr/share/tvheadend so default opentv config exists.
This commit is contained in:
parent
3af5f7182c
commit
41505f22fd
3 changed files with 2 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ const char *tvheadend_dataroot(void)
|
|||
static char cwd[256] = { 0 };
|
||||
if (!*cwd) {
|
||||
assert(getcwd(cwd, 254));
|
||||
strcat(cwd, "/");
|
||||
}
|
||||
return cwd;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue