Blame vdr-skinenigmang-0.1.2-config.patch

Martin Gansser b0159d
diff -up skinenigmang-0.1.2/README~ skinenigmang-0.1.2/README
Martin Gansser b0159d
--- skinenigmang-0.1.2/README~	2012-05-04 12:59:44.000000000 +0300
Martin Gansser b0159d
+++ skinenigmang-0.1.2/README	2012-05-04 13:07:27.786479829 +0300
Martin Gansser b0159d
@@ -92,10 +92,10 @@
Martin Gansser b0159d
       Path to the TrueTypeFonts (*.ttf) (Default: <logodir>/fonts).
Martin Gansser b0159d

Martin Gansser b0159d
   -i path, --epgimages=path
Martin Gansser b0159d
-      Path to the epgimages (Default: <logodir>/epgimages).
Martin Gansser b0159d
+      Path to the epgimages (Default: /var/cache/vdr/epgimages).
Martin Gansser b0159d

Martin Gansser b0159d
   -l path, --logodir=path
Martin Gansser b0159d
-      Path to the logos (Default: <vdrconfdir>/plugins/skinenigmang).
Martin Gansser b0159d
+      Path to the logos (Default: /usr/share/vdr).
Martin Gansser b0159d

Martin Gansser b0159d

Martin Gansser b0159d
 Usage
Martin Gansser b0159d
diff -up skinenigmang-0.1.2/skinenigmang.c~ skinenigmang-0.1.2/skinenigmang.c
Martin Gansser b0159d
--- skinenigmang-0.1.2/skinenigmang.c~	2012-05-02 09:20:26.000000000 +0300
Martin Gansser b0159d
+++ skinenigmang-0.1.2/skinenigmang.c	2012-05-04 13:07:36.903357269 +0300
Martin Gansser b0159d
@@ -121,13 +121,13 @@ bool cPluginSkinEnigma::Start(void)
Martin Gansser b0159d
 
Martin Gansser b0159d
   if (!fLogodirSet) {
Martin Gansser b0159d
     // set logo directory
Martin Gansser b0159d
-    EnigmaConfig.SetLogoDir(cPlugin::ConfigDirectory(PLUGIN_NAME_I18N));
Martin Gansser b0159d
+    EnigmaConfig.SetLogoDir("/usr/share/vdr");
Martin Gansser b0159d
     fLogodirSet = true;
Martin Gansser b0159d
   }
Martin Gansser b0159d
   if (!fImagesDirSet) {
Martin Gansser b0159d
     // set epgimages directory
Martin Gansser b0159d
     char *dir = NULL;
Martin Gansser b0159d
-    if (-1 != asprintf(&dir, "%s/epgimages", cPlugin::ConfigDirectory(PLUGIN_NAME_I18N))) {
Martin Gansser b0159d
+    if (-1 != asprintf(&dir, "%s/epgimages", "/var/cache/vdr")) {
Martin Gansser b0159d
       EnigmaConfig.SetImagesDir(dir);
Martin Gansser b0159d
       fImagesDirSet = true;
Martin Gansser b0159d
       free(dir);