From ae5f8fc279c3212febb0ffa348addb0ed74d171e Mon Sep 17 00:00:00 2001 From: Tadeas Uhlir Date: Tue, 25 Jul 2023 14:15:08 +0200 Subject: [PATCH] Make XDG base dirs work on all UNIX like systems Signed-off-by: Tadeas Uhlir --- src/paths.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paths.cpp b/src/paths.cpp index 27f59fdd..b72d2db7 100644 --- a/src/paths.cpp +++ b/src/paths.cpp @@ -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)