I just tried, providing the following in package.json of my project.
Looks like Tray is shown, but contextual menu doesn’t work.
Changing the confinement with classic it works.
"build": {
"productName": "turboSMTP Executive Monitor",
"appId": "io.deliverytech.turbosmtpexecutivemonitor",
"artifactName": "${productName}-${version}.${ext}",
"linux": {
"category": "network",
"target": [
"snap",
"deb"
]
},
"snap": {
"confinement": "strict",
"stagePackages": [
"default"
],
"environment": {
"HOME": "$SNAP_USER_COMMON",
"TMPDIR": "$XDG_RUNTIME_DIR",
"XDG_CURRENT_DESKTOP": "Unity",
"DISABLE_WAYLAND": 1
},
"plugs": [
"avahi-observe",
"browser-support",
"cups-control",
"gsettings",
"opengl",
"home",
"desktop",
"desktop-legacy",
"mount-observe",
"network",
"network-bind",
"network-observe",
"password-manager-service",
"pulseaudio",
"removable-media",
"screen-inhibit-control",
"unity7",
"x11"
]
}
}