[neon/snap-packaging/kf6-core] /: Revert "Remove asound.conf so it isn't removed in cleanup stage on the snaps."

Scarlett Moore null at kde.org
Thu Jun 27 09:45:41 BST 2024


Git commit 921e1e613ff7d946bce51b44a7bd7e77422dab9e by Scarlett Moore.
Committed on 27/06/2024 at 08:45.
Pushed by scarlettmoore into branch 'master'.

Revert "Remove asound.conf so it isn't removed in cleanup stage on the snaps."

This reverts commit cefbab4291ca29d88e89a17c1860a5d6cd66703e.

M  +19   -0    snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/kf6-core/-/commit/921e1e613ff7d946bce51b44a7bd7e77422dab9e

diff --git a/snapcraft.yaml b/snapcraft.yaml
index 0a22357..67580d9 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -90,6 +90,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