Collection cache stores expanded filestorage path
tbrk opened this issue · 4 comments
Thank you for such a useful and well thought out tool.
I use unison to synchronize a laptop running macOS (HOME=/Users/me
) with a desktop running Linux (HOME=/home/me
) and I want to be able to run vdirsyncer
on either machine against the same set of files. In .vdirsyncer/config
, I use ~
to abstract over the difference in the HOME
directories, but unfortunately vdirsyncer discover
expands ~
before caching the filestorage path. Would it please be possible to cache the unexpanded path and to expand in every vdirsyncer sync
?
This should be doable. You're not running vdirsyncer on both devices, are you?
If you run it on both devices, and unison is running too, this might result in unison copying vdirsyncer's state file and leaving things in an inconsistent state.
My use case is as follows:
- Run vdirsyncer on the laptop while not at work.
- Run unison in the morning when I arrive at work.
- Run vdirsyncer on the desktop at work.
- Run unison in the evening before leaving work.
The idea is thus to run vdirsyncer on both devices, but never at the same time. Should this work?
Yeah, as long as vdirsyncer and unison never run at the same time you should be safe.