mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Make XDG base dirs work on all UNIX like systems
Signed-off-by: Tadeas Uhlir <tadeas.uhlir@gmail.com>
This commit is contained in:
parent
bcf466eb37
commit
ae5f8fc279
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ static const char *legacy_config_dir = "~/.timewarrior";
|
|||
static const bool uses_legacy_config = Directory (legacy_config_dir).exists ();
|
||||
const char *timewarriordb = getenv ("TIMEWARRIORDB");
|
||||
|
||||
#ifdef __unix__
|
||||
#if defined(__unix__) || defined(__APPLE__) || defined(__linux__) || defined(_SYSTYPE_BSD)
|
||||
std::string getPath (const char *xdg_path)
|
||||
{
|
||||
if (timewarriordb != nullptr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue