This commit ensures that the snapcraft icon is shown in the lock screen notifications. Unfortunately, to make it work it requires to be modified in the .deb package; it seems that there is no way of doing this in the snap package because the required change must be set in the "first" .desktop file, and /usr/share(/applications) is before than /var/lib/snapd/desktop(/applications) in the XDG_DATA_DIRS order.
Jira: DT-862
Use NoDisplay=true so gnome-session-properties does list it as a startup program
We don't list the technical items/services in the GUI because it confuses users
and can lead to have them being turned off which creates problems.
Add support for `snap userd --autostart`. The command is expected to be run as part of user session startup and is responsible for starting snap applications that have placed a proper `*.desktop` file in `$SNAP_USER_DATA/.config/autostart`. The desktop file is matched against `autostart` declaration in snap's YAML.
For details see https://forum.snapcraft.io/t/development-sprint-march-5th-2018/4345/2
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>