Enabling user daemons and D-Bus activation

Hello @jamesh @ijohnson,

I follow up this approach from my post (The dbus approach for single client/server snap), and here is my snapcraft.yaml to use user daemons and DBus activtation:

slots:
  dbus-server-slot:
    interface: dbus
    bus: session
    name: in.softprayog.add_server

plugs:
  dbus-client-plug:
    interface: dbus
    bus: session                                                                                                                                                                                           
    name: in.softprayog.add_server

apps:
  server:
    command: bin/server
    daemon: simple
    passthrough:
      daemon-scope: user
      activates-on:
        - dbus-server-slot
  client:
    command: bin/client
    plugs:
      - dbus-client-plug

However, server app was not in the snap services, and syslog had the following error:

snapd[136290]: snap.go:182: cannot get full app info for snap "dbus-test-snap": cannot get status of services of app "server": cannot get unit status: empty field "Type" in ‘systemctl show’ output

And, above experimental options should be set on 20.04 host:

$ sudo snap get system experimental.user-daemons
true
$ sudo snap get system experimental.dbus-activation
true

Can you point me if something missing?

Thanks,
Woodrow