Nice! Now if it will respect TMPDIR environment variable for the Unix socket folder location instead of hardcoding it to /tmp then it would be possible to have both Insync desktop and Insync headless running on the same system.
Or maybe just change its name to insync-headless-$UID.sock.
edit: Iām now noticing that insync-headless still put out.txt in $HOME/.config/Insync instead of $HOME/.config/Insync-headless, so this also needs to be fixed.