summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-11-03 14:48:07 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2007-11-03 14:48:07 +0100
commit672c8c3d0ef9c8a4c82c457807e9a5b8bd2e5212 (patch)
tree36cf82b55dee9491b8d8238b0214a03f888e9268 /vdr.c
parentdb3e2a122d0ccef2596aa586fbf48cb47d10e07e (diff)
downloadvdr-672c8c3d0ef9c8a4c82c457807e9a5b8bd2e5212.tar.gz
vdr-672c8c3d0ef9c8a4c82c457807e9a5b8bd2e5212.tar.bz2
Fixed handling CONFDIR
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/vdr.c b/vdr.c
index f858add2..a4e6e1f4 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.301 2007/10/19 14:44:19 kls Exp $
+ * $Id: vdr.c 1.302 2007/11/03 14:46:29 kls Exp $
*/
#include <getopt.h>
@@ -181,6 +181,7 @@ int main(int argc, char *argv[])
#define DEFAULTSVDRPPORT 2001
#define DEFAULTWATCHDOG 0 // seconds
+#define DEFAULTCONFDIR CONFDIR
#define DEFAULTPLUGINDIR PLUGINDIR
#define DEFAULTEPGDATAFILENAME "epg.data"
@@ -382,8 +383,7 @@ int main(int argc, char *argv[])
if (DisplayHelp) {
printf("Usage: vdr [OPTIONS]\n\n" // for easier orientation, this is column 80|
" -a CMD, --audio=CMD send Dolby Digital audio to stdin of command CMD\n"
- " -c DIR, --config=DIR read config files from DIR (default is to read them\n"
- " from the video directory)\n"
+ " -c DIR, --config=DIR read config files from DIR (default: %s)\n"
" -d, --daemon run in daemon mode\n"
" -D NUM, --device=NUM use only the given DVB device (NUM = 0, 1, 2...)\n"
" there may be several -D options (default: all DVB\n"
@@ -425,6 +425,7 @@ int main(int argc, char *argv[])
" -w SEC, --watchdog=SEC activate the watchdog timer with a timeout of SEC\n"
" seconds (default: %d); '0' disables the watchdog\n"
"\n",
+ DEFAULTCONFDIR,
DEFAULTEPGDATAFILENAME,
DEFAULTPLUGINDIR,
LIRC_DEVICE,
@@ -537,7 +538,7 @@ int main(int argc, char *argv[])
// Configuration data:
if (!ConfigDirectory)
- ConfigDirectory = CONFDIR;
+ ConfigDirectory = DEFAULTCONFDIR;
cPlugin::SetConfigDirectory(ConfigDirectory);
cThemes::SetThemesDirectory(AddDirectory(ConfigDirectory, "themes"));