Using Ubuntu 22.04, KDE Plasma.
I'm experiencing very strange behavior of many (all?) snap apps, such as Firefox. They usually crash on launch, but if I try to launch them many times, eventually it will work. I could not find any indication of what's wrong in any of the logs (syslog, dmesg, journalctl -f
). Sometimes the following messages appear in the syslog, but not every time:
[ 2176.109392] audit: type=1400 audit(1691916306.731:728): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/19457/usr/lib/snapd/snap-confine" pid=15891 comm="snap-confi
ne" capability=12 capname="net_admin"
[ 2176.109401] audit: type=1400 audit(1691916306.731:729): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/19457/usr/lib/snapd/snap-confine" pid=15891 comm="snap-confi
ne" capability=38 capname="perfmon"
The most mysterious part is when I launch Firefox (or the other snap apps) from terminal via snap run firefox
or just firefox
, it works every time. Also, when I configure the Plasma launcher to open the app in a terminal, it works every time. So no easy way to debug the problem, since it's only reproducible when launched from the desktop UI, not from terminal.
I've done extensive googling, found nothing that looked relevant. How do I approach this problem?