1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Closes #217. Use XDG-compatible config directory

This change is largely experimental and it's entirely possible it could
wipe out your existing configuration. Be warned.

Old config path was: ~/.wtf/
New config path is:  ~/.config/wtf/

If an existing config directory already exists, this change attempts to
copy it to the new location.

Note that if your config file contains paths to files in the old config
directory, they won't work. You'll need to change them by hand.
This commit is contained in:
Chris Cummer
2018-06-20 16:46:02 -07:00
parent d9d351497f
commit 0e141e03c8
5 changed files with 122 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ func logFilePath() string {
return ""
}
return filepath.Join(dir, ".wtf", "log.txt")
return filepath.Join(dir, ".config", "wtf", "log.txt")
}
func (widget *Widget) tailFile() []string {