/dev/sda1 on /boot/efi type vfat (rw,noatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/var/lib/snapd/snaps/code_28.snap on /snap/code/28 type squashfs (ro,nodev,relatime,x-gdu.hide)
I tried running the command: sudo systemctl apparmor restart
The answer was: Unknown operation apparmor.
When I try the code: snap run code
The answer was: dropping privs did not work: No such file or directory
I’m having a similar issue, running snap run code successfully starts VSCode, however running code . doesn’t start any processes (pgrep returns empty output). I have tried the above suggestions, but wasn’t able to resolve this issue.
there are many files and directories underneath this directory that are 0700 or even stricter, changing the whole lot of files and directories underneath /var/lib/snapd recursively to 0755 will likely break your system and rip open a ton of security holes.