From a38e679a2d2f3debe47fc74b6c511e9b6806f7cd Mon Sep 17 00:00:00 2001 From: dam Date: Thu, 15 Dec 2022 23:30:11 +0000 Subject: Added notes about folder where data is stored. --- main.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 144f8ad..0623ef6 100644 --- a/main.c +++ b/main.c @@ -41,7 +41,11 @@ #define FIRST_DAY_OF_WEEK 1 // (0-6, Sunday = 0). #define NUM_WEEK_DAYS 7 // Just to avoid magic numbers. -#define HOME_PATH_ENV "HOME" // #if defined(_WIN64) #define HOME_PATH_ENV "USERPROFILE" #endif +#if defined(_WIN64) +#define HOME_PATH_ENV "USERPROFILE" +#else +#define HOME_PATH_ENV "HOME" +#endif #define APP_FOLDER_NAME ".task_time_tracker" #define DB_FILE_NAME "database.bin" #define AR_FILE_NAME "archive.csv" @@ -1249,8 +1253,12 @@ int main(int argc, char *argv[]) { " END Select last/bottom task.\n" "\n" "Notes\n" - " During intensive tasks such as saving to file or recalculating totals times,\n" - " a diamond symbol is shown on the top left corner.\n" + "- All data files are stored in '$" HOME_PATH_ENV "/.task_time_tracker'.\n" + " If $" HOME_PATH_ENV " is undefined, './.task_time_tracker' will be used.\n" + " The database entries are stored in binary format on the 'database.bin' file.\n" + " The archived entries are stored in CSV format on the 'archive.csv' file.\n" + "- During intensive tasks such as saving to file or recalculating totals times,\n" + " a diamond symbol is shown on the top left corner.\n" ); free_memory(); return EXIT_SUCCESS; -- cgit v1.2.3