I was snapping my application which is written in qt5 and uses libappindicator to provide system tray icon with some functionalities.
After Creating snap and running my app, it ends up with the following error message in terminal window :
libappindicator-WARNING **: Unable to connect to the Notification
Watcher: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An
AppArmor policy prevents this sender from sending this message to
this recipient; type="method_call", sender=":1.153" (uid=1000
pid=19705 comm="deskie-snap ")
interface="org.kde.StatusNotifierWatcher"
member="RegisterStatusNotifierItem" error name="(unset)"
requested_reply="0" destination=":1.53" (uid=1000 pid=3134
comm="/usr/lib/x86_64-linux-gnu/indicator-application/in")
I also used unity7 interface which is think handle the connectivity of libappindicator to system's Bus.
My snapcraft.yaml file look like this:
Help please.
snappy-debugsnap and runsudo snappy-debug.security scanlogand then run your app, doessnappy-debugsay anything helpful? – Kyle Dec 5 '16 at 19:08