Skip to content

Commit

Permalink
logdir in cli help
Browse files Browse the repository at this point in the history
  • Loading branch information
esq4 committed Dec 9, 2024
1 parent b126153 commit cf4fb3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/darktable.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ darktable_t darktable;
static int usage(const char *argv0)
{
#ifdef _WIN32
char *logfile = g_build_filename(g_get_user_cache_dir(), "darktable", "darktable-log.txt", NULL);
char *logfile = g_build_filename(g_get_home_dir(), "Documents", "Darktable", "darktable-log.txt", NULL);
#endif
// clang-format off

Expand Down
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ int main(int argc, char *argv[])

if(redirect_output)
{
// NOTE! If the log file path is changed, reflect the changes at least
// in the console message in 'usage()' of 'common\darktable.c'
char *logdir = g_build_filename(g_get_home_dir(), "Documents", "Darktable", NULL);
char *logfile = g_build_filename(logdir, "darktable-log.txt", NULL);

Expand Down

0 comments on commit cf4fb3b

Please sign in to comment.