added doc for env vars

This commit is contained in:
Patrick von Reth 2014-02-24 20:19:53 +01:00
parent 63f691c8d1
commit f9a59f481d
2 changed files with 10 additions and 2 deletions

View File

@ -194,7 +194,7 @@ const QHash<QString, PluginContainer *> PluginContainer::pluginCache(SnorePlugin
{ {
if(s_pluginCache.isEmpty()) 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(); updatePluginCache();
} }

View File

@ -35,7 +35,15 @@ class QSystemTrayIcon;
/** /**
* Snore is a platform independent Qt notification framework. * Snore is a platform independent Qt notification framework.
*
* Environment variables:
* <table>
* <tr><td>LIBSNORE_DEBUG_LVL</td><td>Value betwene 0 and 3 @see SnoreDebugLevels</td></tr>
* <tr><td>LIBSNORE_LOG_TO_FILE</td><td>If 1 write to a logfile in tmp/libsnore/appname-log.txt</td></tr>
* <tr><td>LIBSNORE_LOGFILE</td><td>Use with LIBSNORE_LOG_TO_FILE, sets the file to log to</td></tr>
* <tr><td>LIBSNORE_FORCE_CHACHE_UPDATE</td><td>Always update the plugin cache</td></tr>
* </table>
* *
* @author Patrick von Reth \<vonreth at kde.org\> * @author Patrick von Reth \<vonreth at kde.org\>
*/ */