The filebased QuickAccess impls use the following pattern to add/or remove an entry:
- Copy file to tmp dir
- Edit file
- Replace original file with tmp-file atomically
The latter might not be possible atomically (e.g. /tmp/ and /home/user/... can be on different disks/partitions). The error message:
Caused by: java.nio.file.AtomicMoveNotSupportedException: /tmp/user-places.xbel.cryptomator.tmp -> /home/user/.local/share/user-places.xbel: Invalid cross-device link
If atomic move is not supported, we could relax the condition on a second try.
The filebased QuickAccess impls use the following pattern to add/or remove an entry:
The latter might not be possible atomically (e.g.
/tmp/and/home/user/...can be on different disks/partitions). The error message:If atomic move is not supported, we could relax the condition on a second try.