From 43962e86847f0263388a755008876449cce53883 Mon Sep 17 00:00:00 2001 From: casey langen Date: Wed, 8 Apr 2020 21:03:36 -0700 Subject: [PATCH] Fix AlsaOut in the snap package. --- snap/snapcraft.yaml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 97ecd1d4f..0f63c9624 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -13,6 +13,8 @@ base: core18 parts: musikcube: plugin: cmake + build-environment: + - CMAKE_BUILD_PARALLEL_LEVEL: "6" configflags: - -DSNAP_ENABLED=true - -DCMAKE_BUILD_TYPE=Release @@ -69,8 +71,8 @@ apps: musikcube: command: share/musikcube/musikcube.snap environment: - ALSA_CONFIG_PATH: /snap/$SNAPCRAFT_PROJECT_NAME/current/usr/share/alsa/alsa.conf LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio + ALSA_CONFIG_PATH: /snap/$SNAPCRAFT_PROJECT_NAME/current/usr/share/alsa/alsa.conf plugs: - home - removable-media @@ -81,3 +83,23 @@ apps: - alsa slots: - mpris + + musikcubed: + command: share/musikcube/musikcubed.snap + environment: + LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio + ALSA_CONFIG_PATH: /snap/$SNAPCRAFT_PROJECT_NAME/current/usr/share/alsa/alsa.conf + plugs: + - home + - removable-media + - pulseaudio + - network + - network-bind + - audio-playback + - alsa + slots: + - mpris + +layout: + /usr/share/alsa: + bind: $SNAP/usr/share/alsa