Just pitching in: working on this snap, I have tried both with and without the sandbox. I can only get the app to launch completely (it shows a blank white screen when it fails) with the sandbox enabled along with the allow-sandbox
feature of the browser-support
interface.
With the sandbox disabled, there are no relevant denials, but the app itself reports:
[424357:0222/191054.337271:FATAL:platform_shared_memory_region_posix.cc(254)] This is frequently caused by incorrect permissions on /dev/shm. Try 'sudo chmod 1777 /dev/shm' to fix.
It seems that electron is somehow checking for access to /dev/shm
without actually reading or writing anything to the directory.
For completeness, here’s the snappy-debug messages:
= AppArmor =
Time: Feb 22 19:10:40
Log: apparmor="DENIED" operation="capable" profile="/usr/lib/snapd/snap-confine" pid=424078 comm="snap-confine" capability=4 capname="fsetid"
Capability: fsetid
Suggestions:
* adjust program to not require 'CAP_FSETID' (see 'man 7 capabilities')
* add one of 'account-control' to 'plugs'
* do nothing if program otherwise works properly
= AppArmor =
Time: Feb 22 19:10:40
Log: apparmor="DENIED" operation="open" profile="snap.beeper.beeper" name="/snap/core/10823/usr/share/locale/en_GB/LC_MESSAGES/snappy.mo" pid=424078 comm="snap-exec" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /snap/core/10823/usr/share/locale/en_GB/LC_MESSAGES/snappy.mo (read)
Suggestion:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
= AppArmor =
Time: Feb 22 19:10:40
Log: apparmor="DENIED" operation="open" profile="snap.beeper.beeper" name="/home/dllewellyn/Nextcloud/Documents/" pid=424134 comm="head" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /home/dllewellyn/Nextcloud/Documents/ (read)
Suggestion:
* add 'home' to 'plugs'
= AppArmor =
Time: Feb 22 19:10:47
Log: apparmor="DENIED" operation="dbus_method_call" bus="system" path="/" interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" mask="send" name="org.bluez" pid=424078 label="snap.beeper.beeper" peer_pid=2486 peer_label="unconfined"
DBus access
As you see, they’re all fairly benign, with the only really interesting one being the first message about snap-confine
though that might be unrelated.