Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions linux/asoundrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pcm.pulse { type pulse }
ctl.pulse { type pulse }

pcm.!default { type pulse }
ctl.!default { type pulse }

# Catch common fallbacks so they also land on Pulse
pcm.dmix { type plug ; slave.pcm "pulse" }
pcm.dsnoop { type plug ; slave.pcm "pulse" }
pcm.sysdefault { type plug ; slave.pcm "pulse" }
22 changes: 22 additions & 0 deletions linux/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
bwrap \
--ro-bind /usr /usr \
--symlink usr/lib64 /lib64 \
--proc /proc \
--dev /dev \
--new-session \
--unshare-pid \
--tmpfs /tmp \
--tmpfs /dev/shm \
--bind "$XDG_RUNTIME_DIR" "$XDG_RUNTIME_DIR" \
--setenv XDG_RUNTIME_DIR "$XDG_RUNTIME_DIR" \
--setenv PULSE_SERVER "unix:${XDG_RUNTIME_DIR}/pulse/native" \
--bind-try "$XDG_RUNTIME_DIR/pipewire-0" "$XDG_RUNTIME_DIR/pipewire-0" \
--ro-bind /usr/share/alsa /usr/share/alsa \
--ro-bind /etc/alsa /etc/alsa \
--ro-bind /etc/resolv.conf /etc/resolv.conf \
--ro-bind /usr/share/ca-certificates /usr/share/ca-certificates \
--ro-bind /etc/ssl /etc/ssl \
--ro-bind /etc/ca-certificates /etc/ca-certificates \
--ro-bind ./ /app \
--setenv ALSA_CONFIG_PATH /app/linux/asoundrc \
/app/.venv/bin/python /app/main.py
Loading