Request to allow connection to desktop, wayland, x11 and audio slots of plasma-desktop-session snap

This is a request going with the manual review of the upcoming plasma-desktop-session snap. I’d like to get a store assertion which allows other snaps to connect to the following slots of this snap:

  • desktop
  • wayland
  • x11
  • pulseaudio (deprecated, but requested in order to be compatible with older snaps)
  • audio-playback
  • audio-record

On a classic system, these interfaces are provided as implicit slots. On a core system, the plasma-desktop-session snap would serve the same role and we’d want any GUI snap to be able to auto-connect its plugs as they would on a classic system. I’d prefer not to require each individual snap to require its own declaration to allow connection if possible.

This snap is only intended to be used on core systems, as such it should be a candidate for auto-connections only on such systems.

Here’s a sketch of what we’re after:

slots:
  desktop:
    allow-installation: true
    allow-connection:
      on-classic: false
    allow-auto-connection:
      on-classic: false
  wayland:
    allow-installation: true
    allow-connection:
      on-classic: false
    allow-auto-connection:
      on-classic: false
  x11:
    allow-installation: true
    allow-connection:
      on-classic: false
    allow-auto-connection:
      on-classic: false
  pulseaudio:
    allow-installation: true
    allow-connection:
      on-classic: false
    allow-auto-connection: false
  audio-playback:
    allow-installation: true
    allow-connection:
      on-classic: false
    allow-auto-connection:
      on-classic: false
  audio-record:
    allow-installation: true
    allow-connection:
      on-classic: false
    allow-auto-connection: false

This should be similar to what the ubuntu-desktop-session snap got.

Does it seem appropriate?

Given the purpose of this snap is to provide the desktop session and hence these slots, this seems appropriate. +1 to me for use of (ie. allow-installation: true and global auto-connnect (allow-auto-connection) to the following slots for the plasma-desktop-session snap on Ubuntu Core devices only (on-classic: false):

  • desktop
  • wayland
  • x11
  • pulseaudio
  • audio-playback
  • audio-record