It makes sense! Im running a base18 on a ubuntu 22, so that’s why im having these problems. I rewrote the manifest using core22. And it worked partially. Thank you for the hint.
Now I’m having another problem not related to de core.
My application needs to create a SQLite database file. I tried to create in $HOME/.config but the snap can’t access the home folder. I tried in /var but it didn’t work. What would be a good folder to store a database file?
note though that the home interface does not allow access to hidden directories (i.e. the ones starting with a dot, like $HOME/.config)
at runtime your snap has the $SNAP_USER_DATA and $SNAP_USER_COMMON environment variables set that point to writable places inside the users home dir (~/snap/<snapname>/current and ~/snap/<snapname>/common), both dirs should be writable by the user and do not require any extra interfaces.