Prefer $XDG_CONFIG_HOME/ncmpcpp as a folder with configuration

This commit is contained in:
Andrzej Rybczak
2020-12-20 17:20:41 +01:00
parent 451856afd3
commit 31798fd1c7
7 changed files with 26 additions and 15 deletions

View File

@@ -103,7 +103,7 @@ int main(int argc, char **argv)
// always execute these commands, even if ncmpcpp use exit function
atexit(do_at_exit);
// redirect std::cerr output to ~/.ncmpcpp/error.log file
// redirect std::cerr output to the error.log file
errorlog.open((Config.ncmpcpp_directory + "error.log").c_str(), std::ios::app);
cerr_buffer = std::cerr.rdbuf();
std::cerr.rdbuf(errorlog.rdbuf());