mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Context: Correctly handle XDG_CONFIG_HOME paths ending with '/'
This commit is contained in:
parent
f0e34a7ef7
commit
eb32c9d8d7
1 changed files with 4 additions and 0 deletions
|
@ -471,6 +471,10 @@ int Context::initialize (int argc, const char** argv)
|
|||
else
|
||||
xdg_config_home = format ("{1}/.config", home_dir);
|
||||
|
||||
// Ensure the path does not end with '/'
|
||||
if (xdg_config_home.back () == '/')
|
||||
xdg_config_home.pop_back();
|
||||
|
||||
// https://github.com/GothenburgBitFactory/libshared/issues/32
|
||||
std::string rcfile_path = format ("{1}/task/taskrc", xdg_config_home);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue