From d402383782292c094a4230aaf509d2e78b24c118 Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Sun, 23 Aug 2009 23:28:05 +0300 Subject: [PATCH] Use base name (instead of "lash") for log file path --- daemon/log.c | 4 ++-- wscript | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/log.c b/daemon/log.c index 08452300..3255384e 100644 --- a/daemon/log.c +++ b/daemon/log.c @@ -39,8 +39,8 @@ #include "../catdup.h" #define DEFAULT_XDG_LOG "/.log" -#define LASH_XDG_SUBDIR "/lash" -#define LASH_XDG_LOG "/lash.log" +#define LASH_XDG_SUBDIR "/" BASE_NAME +#define LASH_XDG_LOG "/" BASE_NAME ".log" FILE * g_logfile; diff --git a/wscript b/wscript index f5aeee66..32bafeaa 100644 --- a/wscript +++ b/wscript @@ -121,6 +121,7 @@ def configure(conf): conf.define('PACKAGE_VERSION', VERSION) conf.define('DBUS_NAME_BASE', DBUS_NAME_BASE) conf.define('DBUS_BASE_PATH', '/' + DBUS_NAME_BASE.replace('.', '/')) + conf.define('BASE_NAME', APPNAME) conf.define('_GNU_SOURCE', 1) conf.write_config_header('config.h')