I have a snap that when installed, runs in the background and creates a unix socket at $SNAP_COMMON/deskconn.sock
, I also made that sock shareable for other apps using content interface and that works fine.
The problem however is that I have not found a way to access the sock by a different app (apps stanza) of the same snap that provides the unix socket because that app runs as a normal user while the daemon is running as root and hence $SNAP_COMMON is different.
Is there a common place where a snap could create its Unix Domain Socket which both the daemon and a session level app can access ?