From f9a59f481d6746e63a2895d2f1f24e17fd66f394 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Mon, 24 Feb 2014 20:19:53 +0100 Subject: [PATCH] added doc for env vars --- src/core/plugins/plugincontainer.cpp | 2 +- src/core/snore.h | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/core/plugins/plugincontainer.cpp b/src/core/plugins/plugincontainer.cpp index c8511b7..f568e65 100644 --- a/src/core/plugins/plugincontainer.cpp +++ b/src/core/plugins/plugincontainer.cpp @@ -194,7 +194,7 @@ const QHash PluginContainer::pluginCache(SnorePlugin { if(s_pluginCache.isEmpty()) { - if(cache().value("version").toString() != Version::revision() || !qgetenv("LIBSNORE_FORCE_CHACHE_UPDATE").isNull()) + if(cache().value("version").toString() != Version::revision() || qgetenv("LIBSNORE_FORCE_CHACHE_UPDATE").toInt() == 1) { updatePluginCache(); } diff --git a/src/core/snore.h b/src/core/snore.h index 2e67203..a23e3c3 100644 --- a/src/core/snore.h +++ b/src/core/snore.h @@ -35,7 +35,15 @@ class QSystemTrayIcon; /** - * Snore is a platform independent Qt notification framework. + * Snore is a platform independent Qt notification framework. + * + * Environment variables: + * + * + * + * + * + *
LIBSNORE_DEBUG_LVLValue betwene 0 and 3 @see SnoreDebugLevels
LIBSNORE_LOG_TO_FILEIf 1 write to a logfile in tmp/libsnore/appname-log.txt
LIBSNORE_LOGFILEUse with LIBSNORE_LOG_TO_FILE, sets the file to log to
LIBSNORE_FORCE_CHACHE_UPDATEAlways update the plugin cache
* * @author Patrick von Reth \ */