WMaker: Store history in $XDG_STATE_HOME if defined
commit85169642ca004c75464aa4f803bc0df11bb151cf
authorJohn D Pell <john@pell.cc>
Sun, 8 Aug 2021 07:36:22 +0000 (8 09:36 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 10 Aug 2021 08:42:43 +0000 (10 09:42 +0100)
treee85fb1795c757795c3790f28bb009d4eeed62dd6
parent9f9ef6417e9edb6cf1e3eda43ddd7b96a43b0876
WMaker: Store history in $XDG_STATE_HOME if defined

The FreeDesktop XDG standard suggests storing history in the directory
pointed by $XDG_STATE_HOME; so if we find it is defined we prefer to use
it over the default path. If undefined, keep the old behaviour.

This may introduce a loss of history for users that had some in the legacy
place but have the variable, we consider this very unlikely to be a problem
but if user complains we can suggest them to move the legacy file over the
empty new one.
src/dialog.c