From 41505f22fd8049d1705d1f322215ca7f04d8a6ed Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Fri, 29 Jun 2012 14:30:19 +0100 Subject: [PATCH] Include data directory in /usr/share/tvheadend so default opentv config exists. --- Makefile | 2 +- src/epggrab/module/opentv.c | 2 +- support/dataroot/wd.c | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ec07efd0..43d95a67 100644 --- a/Makefile +++ b/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 diff --git a/src/epggrab/module/opentv.c b/src/epggrab/module/opentv.c index 5874163e..0513f1ff 100644 --- a/src/epggrab/module/opentv.c +++ b/src/epggrab/module/opentv.c @@ -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"); diff --git a/support/dataroot/wd.c b/support/dataroot/wd.c index 52da7f52..bda80485 100644 --- a/support/dataroot/wd.c +++ b/support/dataroot/wd.c @@ -7,7 +7,6 @@ const char *tvheadend_dataroot(void) static char cwd[256] = { 0 }; if (!*cwd) { assert(getcwd(cwd, 254)); - strcat(cwd, "/"); } return cwd; }