Change log file directory.

This commit is contained in:
tastytea 2021-05-31 19:26:19 +02:00
parent 11572d5b29
commit 18f8600174
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 2 deletions

View File

@ -48,12 +48,13 @@ void init()
path = helpers::get_env("HOME");
if (!path.empty())
{
path /= ".local/state";
path /= ".local";
path /= "state";
}
}
if (!path.empty())
{
return path /= "epubgrep.log";
return (path /= "epubgrep") /= "epubgrep.log";
}
return fs::path{};
}()};