[neon/snap-packaging/kf6-core] /: Move alsa conf generation to runtime snap for consistancy.

Scarlett Moore null at kde.org
Tue Jun 18 15:20:36 BST 2024


Git commit 446613376d3748b4c9cb0ee43a69824ede732f75 by Scarlett Moore.
Committed on 18/06/2024 at 14:19.
Pushed by scarlettmoore into branch 'master'.

Move alsa conf generation to runtime snap for consistancy.

M  +19   -0    snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/kf6-core/-/commit/446613376d3748b4c9cb0ee43a69824ede732f75

diff --git a/snapcraft.yaml b/snapcraft.yaml
index f0c8ad8..71b08b6 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -95,6 +95,25 @@ parts:
             craftctl default
             cd $CRAFT_PRIME
             find . -type f,l -name "*.h" -exec bash -c "rm -f {}*" \;
+    alsa-pulseaudio:
+        plugin: dump
+        source: .
+        override-pull: |
+            mkdir etc -p
+            cat > etc/asound.conf <<EOF
+            pcm.!default {
+                type pulse
+                fallback "sysdefault"
+                hint {
+                    show on
+                    description "Default ALSA Output (currently PulseAudio Sound Server)"
+                }
+            }
+            ctl.!default {
+                type pulse
+                fallback "sysdefault"
+            }
+            EOF
     command-chain:
         source: https://github.com/canonical/snapcraft.git
         source-type: git


More information about the Neon-commits mailing list