ads_block
Shim for Affinity on Linux to prevent creation of .aflock:com.dropbox.ignored files
Source code: ads_block.c Compiled executable: ads_block.so
Usage syntax:
LD_PRELOAD=/path/to/executable/ads_block.so wine "c:\program files\affinity\affinity\affinity.exe"
How it works:
ads_block.so is an LD_PRELOAD shim that intercepts open() syscalls at the glibc level, blocking any attempt to create files whose path contains :com.dropbox.ignored. This prevents Wine from materializing the NTFS Alternate Data Stream that Affinity writes on lock files, which on Linux would otherwise appear as real leftover files on the filesystem instead of remaining invisible as they do on Windows.
created with the assistance of Claude AI