Commit 214c9ced authored by Matt Edman's avatar Matt Edman
Browse files

QDir doesn't appear to be able to resolve paths like "~/.tor", but it does

have a QDir::homePath(). So, I use that to build default log locations, but
it'd be nice if we could figure out how to resolve relative paths like that.
Justin, you'll have to check if the default path works and is sane on Windows.


svn:r250
parent 2f5fb4f8
Loading
Loading
Loading
Loading
+3 −2
Changes for src/config/vidaliasettings.cpp: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -61,10 +61,11 @@
#define DEFAULT_MSG_FILTER     (TOR_ERROR|TOR_WARN|TOR_NOTICE)
#define DEFAULT_MAX_MESSAGE    500
#define DEFAULT_ENABLE_LOG_FILE false

#if defined(Q_OS_WIN32)
#define DEFAULT_LOG_FILE       "%APPDATA%\\Tor\\tor.log"
#define DEFAULT_LOG_FILE       (QDir::homePath() + "\\Tor\\tor.log")
#else
#define DEFAULT_LOG_FILE       "~/.tor/tor.log"
#define DEFAULT_LOG_FILE       (QDir::homePath() + "/.tor/tor.log")
#endif

/* Default bandwidth graph settings */