Comply with the XDG Base Directory Specification

This commit is contained in:
Guido Cella
2020-05-10 07:01:31 +02:00
parent 780b7dd214
commit 3413d847c5
9 changed files with 21 additions and 26 deletions

View File

@@ -69,7 +69,7 @@ std::string get_hist_file_path()
if (hist_file_str != nullptr)
return std::string(hist_file_str);
else
return std::string(g_get_home_dir()) + G_DIR_SEPARATOR + ".sdcv_history";
return std::string(g_get_user_data_dir()) + G_DIR_SEPARATOR + "sdcv_history";
}
class real_readline : public IReadLine