Snap nextCloud desktop client can't write log file due to apparmor (Ubuntu 22.04)

looks like: https://github.com/glasen/snap-nextcloud-desktop-client/issues/5

you should enable refresh-app-awareness, then you will be asked to stop the client for upgrades: