Repackaging it was a success, but adding the system-files interface was not. Here’s the snapcraft.yaml
:
base: core22
grade: stable
confinement: strict
plugs:
usr-share-alsa:
interface: system-files
read:
- /usr/share/alsa/alsa.conf
gnome-42-2204:
interface: content
target: $SNAP/gnome-platform
default-provider: gnome-42-2204
gtk-3-themes:
interface: content
target: $SNAP/data-dir/themes
default-provider: gtk-common-themes
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes
name: freeshow
version: 1.3.0
title: FreeShow
summary: FreeShow
description: Show song lyrics and more for free!
architectures:
- amd64
apps:
freeshow:
command: command.sh
plugs:
- alsa
- usr-share-alsa
- desktop
- desktop-legacy
- home
- x11
- wayland
- unity7
- browser-support
- network
- gsettings
- audio-playback
- pulseaudio
- opengl
environment:
DISABLE_WAYLAND: '1'
PATH: $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH
SNAP_DESKTOP_RUNTIME: $SNAP/gnome-platform
LD_LIBRARY_PATH: $SNAP_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu
parts:
freeshow:
source: ./dist/linux-unpacked/
plugin: dump
stage-packages:
- libasound2
Messy, but it works, aside from the unfortunate same error occurring.