Snapcraft.yaml plugs midi device allow (plug and play)

Hi!

snapcraft.yaml plugs midi device , need to allow (plug and play) ? i need help to my application can acces to midi device for playing music…

here is my snapcraft.yaml

    name: midicompanions3d
summary: Midi Companions 3D
description: |
 A freeware to be accompanied by playing a midi instrument or midi software with the computer. This games application is not multi-user. It is possible to use all midi devices running under linux. A virtual music group is waiting for you! the software will be updated soon with other cool options.
version: "1.0"
parts:
    midicompanions3d:
        source: .
        plugin: dump
        
base: core18
apps:
    midicompanions3d:
        extensions: [gnome-3-28]
        command: MidiCompanions3d.x86_64
        desktop: MidiCompanions3d.desktop
plugs:
  midicompanions3d-home:
    interface: home
  midicompanions3d-audio-playback:
    interface: audio-playback
  midicompanions3d-raw-usb:
     interface: raw-usb
  midicompanions3d-raw-input:
     interface: raw-input
  midicompanions3d-system-files:
  interface: system-files

I try with interface: audio-record but not working

I use the libasound2 “ALSA” package on Ubuntu is as easy as running the following command on terminal:

sudo apt-get update sudo apt-get install libasound2

but i don’t know how to snap this… :S

thanks for help me with the .yaml that i just need.

Try making libasound2 a stage-package of your midicompanions3d part … i guess for MIDI you will also need the alsa plug defined and manually connected using the snap connect ... command.

i’d also recommend to use the gnome-3-34 extension instead of gnome-3-28 to get a newer set of desktop libs/themes/fonts …

Hi! thanks for help me

ALSA lib conf.c:3916:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf ALSA lib seq.c:935:(snd_seq_open_noupdate) Unknown SEQ default

MidiInAlsa::initialize: error creating ALSA sequencer client object.

Failed to create an RtMidi device object. (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)


is the problem…

here is my new yaml :

name: midicompanions3d
summary: Midi Companions 3D
description: |
 A freeware to be accompanied by playing a midi instrument or midi software with the computer. This games application is not multi-user. It is possible to use all midi devices running under linux. A virtual music group is waiting for you! the software will be updated soon with other cool options.
version: "2.2"


base: core18

parts:
    midicompanions3d:
     source: .
     plugin: dump
     build-packages:
      - libasound2-dev
     stage-packages:
      - libasound2
      - libasound2-plugins
      - yad


apps:
    midicompanions3d:
        adapter: full
        extensions: [gnome-3-34]
        command: MidiCompanions3d.x86_64
        desktop: MidiCompanions3d.desktop
   
plugs:
   midicompanions3d-home:
       interface: home
   midicompanions3d-audio-playback:
       interface: audio-playback
   midicompanions3d-audio-record:
       interface: audio-record
   midicompanions3d-opengl:
       interface: opengl
   midicompanions3d-pulseaudio:
      interface: pulseaudio
   midicompanions3d-raw-input:
      interface: raw-input
   midicompanions3d-raw-usb:
      interface: raw-usb
   midicompanions3d-x11:
      interface: x11
   midicompanions3d-gsettings:
      interface: gsettings
   midicompanions3d-unity7:
      interface: unity7
   midicompanions3d-wayland:
     interface: wayland
   midicompanions3d-jack1:
     interface: jack1
   midicompanions3d-network:
     interface: network
   midicompanions3d-system-files:
     interface: system-files
   midicompanions3d-system-files:
     interface: system-files

i have misery about of 2 days passed :expressionless: have you an idea how to solve this ?

do the following:

snap install snappy-debug

now run the snappy-debug command in a second terminal while running midicompanions3d in another one … the snappy debug window should pring suggestions which interface plugs to add …

also drop the system-files interfaces you added, their definition requires more than that one line you have there and they are most likely wrong to use anyway …

thanks , nice

here is some more info with your help snappy debug…

= AppArmor =
Time: Oct 13 11:00:18
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/run/udev/data/c14:34" pid=6992 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /run/udev/data/c14:34 (read)
Suggestions:
* adjust program to use $SNAP_DATA
* adjust program to use /run/shm/snap.$SNAP_NAME.*
* adjust program to use /run/snap.$SNAP_NAME.*
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
* add 'hardware-observe' to 'plugs'

now i removed system-file and resnapped and reinstalled with --dangerous & run again but: i added before :

apps:

plugs: 

midicompanions3d-hardware-observe:

     interface: hardware-observe

but this is not more working :confused: it’s just a allow access i’m sure… my game run very well just in right cliking on .x86_64 on ubuntu studio. no need more setup to run my game… but when is snapscrafted or “snapped” can’t run my midi keyboard of music. but the sound and the 3D is running well…

thank you to help me !!

here my new yaml:

name: midicompanions3d
summary: Midi Companions 3D
description: |
 A freeware to be accompanied by playing a midi instrument or midi software with the computer. This games application is not multi-user. It is possible to use all midi devices running under linux. A virtual music group is waiting for you! the software will be updated soon with other cool options.
version: "2.3"


base: core18

parts:
    midicompanions3d:
     source: .
     plugin: dump
     build-packages:
      - libasound2-dev
     stage-packages:
      - libasound2
      - libasound2-plugins
      - yad


apps:
    midicompanions3d:
        adapter: full
        extensions: [gnome-3-34]
        command: MidiCompanions3d.x86_64
        desktop: MidiCompanions3d.desktop
   
plugs:
   midicompanions3d-home:
       interface: home
   midicompanions3d-audio-playback:
       interface: audio-playback
   midicompanions3d-audio-record:
       interface: audio-record
   midicompanions3d-opengl:
       interface: opengl
   midicompanions3d-pulseaudio:
      interface: pulseaudio
   midicompanions3d-raw-input:
      interface: raw-input
   midicompanions3d-raw-usb:
      interface: raw-usb
   midicompanions3d-x11:
      interface: x11
   midicompanions3d-gsettings:
      interface: gsettings
   midicompanions3d-unity7:
      interface: unity7
   midicompanions3d-wayland:
     interface: wayland
   midicompanions3d-jack1:
     interface: jack1
   midicompanions3d-network:
     interface: network
   midicompanions3d-hardware-observe:
     interface: hardware-observe

here more more infos :

= AppArmor =
Time: Oct 13 11:00:18
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input13/capabilities/ev" pid=6992 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input13/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input13/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*f.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 11:00:18
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input14/capabilities/ev" pid=6992 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input14/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input14/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*f.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 11:00:18
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input15/capabilities/ev" pid=6992 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input15/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input15/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*f.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 11:00:18
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input16/capabilities/ev" pid=6992 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input16/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input16/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*f.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 11:00:18
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input17/capabilities/ev" pid=6992 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input17/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input17/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*f.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 11:00:18
Log: apparmor="DENIED" operation="mknod" profile="snap.midicompanions3d.midicompanions3d" name="/dev/shm/mono.6992" pid=6992 comm="MidiCompanions3" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
File: /dev/shm/mono.6992 (write)
Suggestions:
* adjust program to create files and directories in /dev/shm/snap.$SNAP_NAME.*
* try the snapcraft preload plugin: https://github.com/sergiusens/snapcraft-preload

= Seccomp =
Time: Oct 13 11:00:18
Log: auid=4294967295 uid=1000 gid=1000 ses=4294967295 subj=snap.midicompanions3d.midicompanions3d pid=6992 comm="MidiCompanions3" exe="/snap/midicompanions3d/x1/MidiCompanions3d.x86_64" sig=0 arch=c000003e 141(setpriority) compat=0 ip=0x7f03f7292147 code=0x50000
Syscall: setpriority
Suggestion:
* ignore the denial if the program otherwise works correctly (unconditial setpriority is often just noise)

try adding the alsa plug (and indeed connecting it with the snap connect ... command), see if that helps …

ok right now is made, i added alsa but i got this… :

Begin MonoManager ReloadAssembly
- Completed reload, in  0.188 seconds
Default vsync count 1
requesting resize 1024 x 620
resizing window to 1024 x 620
Desktop is 1920 x 1080 @ 60 Hz
UnloadTime: 0.453739 ms
Desktop is 1920 x 1080 @ 60 Hz
ALSA lib conf.c:3916:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib seq.c:935:(snd_seq_open_noupdate) Unknown SEQ default

MidiInAlsa::initialize: error creating ALSA sequencer client object.

Failed to create an RtMidi device object. 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Setting up 8 worker threads for Enlighten.
  Thread -> id: 7f7a22725700 -> priority: 2 
  Thread -> id: 7f7a21f24700 -> priority: 2 
  Thread -> id: 7f7a21723700 -> priority: 2 
  Thread -> id: 7f7a20f22700 -> priority: 2 
  Thread -> id: 7f79d7fff700 -> priority: 2 
  Thread -> id: 7f79d77fe700 -> priority: 2 
  Thread -> id: 7f79d6ffd700 -> priority: 2 
  Thread -> id: 7f79d67fc700 -> priority: 2 

:confused:

and i got it with the connect option …

sudo snap connect midicompanions3d:alsa
[sudo] Mot de passe de studio : 
erreur : snap "midicompanions3d" has no plug named "alsa" 

= AppArmor =
Time: Oct 13 13:33:06
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/run/udev/data/c14:41" pid=15639 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /run/udev/data/c14:41 (read)
Suggestions:
* adjust program to use $SNAP_DATA
* adjust program to use /run/shm/snap.$SNAP_NAME.*
* adjust program to use /run/snap.$SNAP_NAME.*
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
* add 'hardware-observe' to 'plugs'

= AppArmor =
Time: Oct 13 13:33:06
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/run/udev/data/c14:34" pid=15639 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /run/udev/data/c14:34 (read)
Suggestions:
* adjust program to use $SNAP_DATA
* adjust program to use /run/shm/snap.$SNAP_NAME.*
* adjust program to use /run/snap.$SNAP_NAME.*
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
* add 'hardware-observe' to 'plugs'

= AppArmor =
Time: Oct 13 13:33:06
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input10/capabilities/ev" pid=15639 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input10/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input10/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 13:33:06
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input11/capabilities/ev" pid=15639 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input11/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input11/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 13:33:06
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input12/capabilities/ev" pid=15639 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input12/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input12/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 13:33:06
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input7/capabilities/ev" pid=15639 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input7/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input7/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 13:33:06
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input8/capabilities/ev" pid=15639 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input8/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input8/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 13:33:06
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input9/capabilities/ev" pid=15639 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input9/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input9/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/[0-9]*:[0-9]*:[0-9]*.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 13:33:06
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input13/capabilities/ev" pid=15639 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input13/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input13/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*f.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

= AppArmor =
Time: Oct 13 13:33:06
Log: apparmor="DENIED" operation="open" profile="snap.midicompanions3d.midicompanions3d" name="/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input14/capabilities/ev" pid=15639 comm="MidiCompanions3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input14/capabilities/ev (read)
Suggestions:
* adjust program to not access '/sys/devices/pci0000:00/0000:00:1f.3/sound/card0/input14/capabilities/ev'
* adjust program to not access '/sys/devices/pci[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*f.[0-9]*/sound/card[0-9]*/input[0-9]*/capabilities/ev'

here is my new yaml …

name: midicompanions3d
summary: Midi Companions 3D
description: |
 A freeware to be accompanied by playing a midi instrument or midi software with the computer. This games application is not multi-user. It is possible to use all midi devices running under linux. A virtual music group is waiting for you! the software will be updated soon with other cool options.
version: "2.7"


base: core18

parts:
   alsa-mixin:
    plugin: dump
    source: https://github.com/diddlesnaps/snapcraft-alsa.git
    source-subdir: snapcraft-assets
    build-packages:
      - libasound2-dev
    stage-packages:
      - libasound2
      - libasound2-plugins
      - yad
    stage:
      # restrict to only audio-related files - you need to ensure
      # that gtk3 is staged for yad to work correctly, to prompt
      # users to connect the alsa plug or proceed with pulseaudio.
      #
      # This helps prevent symbol conflicts in situations where
      # you're using a non-default library, such as those that the
      # gnome-3-34 extension for core18 provides.
      - etc/asound.conf
      - snap/command-chain/alsa-launch
      - usr/bin/yad*
      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libasound*
      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libdnsfile*
      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libFLAC*
      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libjack*
      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libpulse*
      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libsamplerate*
      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libspeex*
      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvorbis*
      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio

   midicompanions3d:
     after: [alsa-mixin]
     source: .
     plugin: dump
     build-packages:
      - libasound2-dev
     stage-packages:
      - libasound2
      - libasound2-plugins
      - yad


layout:
  /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib:
    bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
  /usr/share/alsa:
    bind: $SNAP/usr/share/alsa

apps:
    midicompanions3d:
        adapter: full
        extensions: [gnome-3-34]
        command: MidiCompanions3d.x86_64
        desktop: MidiCompanions3d.desktop
        command-chain: ["snap/command-chain/alsa-launch"]
        plugs: [alsa, audio-playback, audio-record]
   
plugs:
   midicompanions3d-home:
       interface: home
   midicompanions3d-audio-playback:
       interface: audio-playback
   midicompanions3d-audio-record:
       interface: audio-record
   midicompanions3d-opengl:
       interface: opengl
   midicompanions3d-pulseaudio:
      interface: pulseaudio
   midicompanions3d-raw-input:
      interface: raw-input
   midicompanions3d-raw-usb:
      interface: raw-usb
   midicompanions3d-x11:
      interface: x11
   midicompanions3d-gsettings:
      interface: gsettings
   midicompanions3d-unity7:
      interface: unity7
   midicompanions3d-wayland:
     interface: wayland
   midicompanions3d-jack1:
     interface: jack1
   midicompanions3d-network:
     interface: network
   midicompanions3d-hardware-observe:
     interface: hardware-observe
   midicompanions3d-alsa:
     interface: alsa
   midicompanions3d-mount-observe:
     interface: mount-observe
   midicompanions3d-network-observe:
     interface: network-observe
   midicompanions3d-network-setup-observe:
     interface: network-setup-observe
   midicompanions3d-physical-memory-observe:
     interface: physical-memory-observe
   midicompanions3d-system-observe:
     interface: system-observe
   midicompanions3d-upower-observe:
     interface: upower-observe
   midicompanions3d-log-observe:
     interface: log-observe
   midicompanions3d-broadcom-asic-control:
     interface: broadcom-asic-control
   midicompanions3d-snapd-control:
     interface: snapd-control

environment:
  ALWAYS_USE_PULSEAUDIO: '1'

here is now the error ?? adjust program to use $SNAP_DATA i need to allow this? how ?

* adjust program to use $SNAP_DATA
* adjust program to use /run/shm/snap.$SNAP_NAME.*
* adjust program to use /run/snap.$SNAP_NAME.*

:slight_smile: i’m on a road trics? i so have no idea to make this…