aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-12-15 23:30:11 +0000
committerdam <dam@gudinoff>2022-12-15 23:30:11 +0000
commita38e679a2d2f3debe47fc74b6c511e9b6806f7cd (patch)
tree631808c8f12c45bd4575ef6ff2a2daa8461ffddf
parent22f5c6099fb9764256bbaa4b990c9bdf68845a3f (diff)
downloadtask-time-tracker-a38e679a2d2f3debe47fc74b6c511e9b6806f7cd.tar.zst
task-time-tracker-a38e679a2d2f3debe47fc74b6c511e9b6806f7cd.zip
Added notes about folder where data is stored.
-rw-r--r--main.c14
1 files changed, 11 insertions, 3 deletions
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;