From 018687b12f8e3b9995f04286cdc3b23f930f48a6 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 29 Oct 2023 15:05:12 +0300 Subject: [PATCH] Fix comments of history and panels.ini files location. Signed-off-by: Andrew Borodin --- lib/mcconfig/history.c | 2 +- lib/widget/dialog.c | 4 ++-- src/setup.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mcconfig/history.c b/lib/mcconfig/history.c index 976aa14b0..7e9c0a32f 100644 --- a/lib/mcconfig/history.c +++ b/lib/mcconfig/history.c @@ -65,7 +65,7 @@ int num_history_items_recorded = 60; /* --------------------------------------------------------------------------------------------- */ /** - * Load the history from the ${XDG_CACHE_HOME}/mc/history file. + * Load the history from the ${XDG_DATA_HOME}/mc/history file. * It is called with the widgets history name and returns the GList list. */ diff --git a/lib/widget/dialog.c b/lib/widget/dialog.c index 3ab2191d1..b3494a3fb 100644 --- a/lib/widget/dialog.c +++ b/lib/widget/dialog.c @@ -83,7 +83,7 @@ dlg_default_get_colors (const Widget * w) /* --------------------------------------------------------------------------------------------- */ /** - * Read histories from the ${XDG_CACHE_HOME}/mc/history file + * Read histories from the ${XDG_DATA_HOME}/mc/history file */ static void dlg_read_history (WDialog * h) @@ -571,7 +571,7 @@ dlg_run (WDialog * h) /* --------------------------------------------------------------------------------------------- */ /** - * Write history to the ${XDG_CACHE_HOME}/mc/history file + * Write history to the ${XDG_DATA_HOME}/mc/history file */ void dlg_save_history (WDialog * h) diff --git a/src/setup.c b/src/setup.c index e86164720..dbb15fa9f 100644 --- a/src/setup.c +++ b/src/setup.c @@ -227,7 +227,7 @@ GArray *macros_list; /*** file scope variables ************************************************************************/ static char *profile_name = NULL; /* ${XDG_CONFIG_HOME}/mc/ini */ -static char *panels_profile_name = NULL; /* ${XDG_CACHE_HOME}/mc/panels.ini */ +static char *panels_profile_name = NULL; /* ${XDG_CONFIG_HOME}/mc/panels.ini */ /* *INDENT-OFF* */ static const struct