Hi,
I have an app written in flutter that compiles as snap package. The application communicates with a daemon over gRPC using a UNIX socket from /run
. For this I’ve created a plug:
plugs:
daemon-socket:
interface: system-files
read:
- /run/daemon/daemon.sock
write:
- /run/daemon/daemon.sock
I’m executing this to have access to the socket: sudo snap connect app:daemon-socket
.
The problem is(tested on Ubuntu 22.04) that if I run the command while the application is running, only the first time, the app is not able to access anymore the asset images. The images work fine before connecting the plug. As a fix I need to restart the app. If I disconnect the the plug, restart the app and the reconnect, everything works fine.
Is there an issues with system-files
or I’m missing something?
Thanks