Re: [Patch 2/2] XDG_DATA_HOME support in mbsync for SyncState

2020-12-01 Thread Oswald Buddenhagen
On Mon, Nov 30, 2020 at 10:01:43PM +0100, Andreas Grapentin wrote: To determine the SyncState directory, if not set explicitly - expand $XDG_DATA_HOME from the environment, falling back to $HOME/.local/share/ as per the specification - check whether XDG_DATA_HOME/mbsync exists and is a director

[Patch 2/2] XDG_DATA_HOME support in mbsync for SyncState

2020-11-30 Thread Andreas Grapentin
This is a first attempt at supporting $XDG_DATA_HOME/mbsync as a SyncState location in addition to ~/.mbsync. The behavior changed by this patch is as follows: To determine the SyncState directory, if not set explicitly - expand $XDG_DATA_HOME from the environment, falling back to $HOME/.loca