Accessing LXD installed via apt from a snap

Hy!

I want to build a snap which needs to have access to my local LXD installation (via the socket). I have actitvated the lxd and lxd-socket plugs ins my snapcraft.yaml file to accomplish this. This works, if lxd itself is installed as a snap, but not if it installed via apt (the standard deb package in Ubuntu 18.04).
I tried to use the system-files interface to give the snap rw access to /var/lib/lxd/unix.socket, but that didn’t work either.

Is there any way to get it working int that setting as well?

the lxd interface grants access to /var/snap/lxd/common/lxd/unix.socket, you could try to create that dir and move or bind mount the socket to that place … but given how hackish that is, why not just use the snap, the deb is dead and gone anyway after 18.04 …