diff options
Diffstat (limited to 'commands/history.go')
-rw-r--r-- | commands/history.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/history.go b/commands/history.go index 0a7d6894..576c04b9 100644 --- a/commands/history.go +++ b/commands/history.go @@ -91,9 +91,9 @@ func (h *cmdHistory) initialize() { var err error openFlags := os.O_RDWR | os.O_EXCL - histPath := xdg.CachePath("aerc", "history") + histPath := xdg.StatePath("aerc", "history") if _, err := os.Stat(histPath); os.IsNotExist(err) { - _ = os.MkdirAll(xdg.CachePath("aerc"), 0o700) // caught by OpenFile + _ = os.MkdirAll(xdg.StatePath("aerc"), 0o700) // caught by OpenFile openFlags |= os.O_CREATE } |