[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to make audio devices available with guix shell --container
From: |
Elias Kueny |
Subject: |
Re: How to make audio devices available with guix shell --container |
Date: |
Tue, 06 Dec 2022 17:01:17 +0000 |
On Mon, Dec 05 2022, kiasoc5 wrote:
About the sound, I believe you will need to expose the pulseaudio
and/or pipewire sockets. You can reference bubblewrap configuration
since it also works by sharing/exposing files.
https://wiki.archlinux.org/title/Bubblewrap/Examples#Chromium
Thank you, that helped me progress. I noticed there were errors about not being
able to connect to DBUS, now the following got rid of those:
guix shell -C -N -P --no-cwd \
--share=/dev/ \
--preserve='^DISPLAY$' --preserve='^XAUTHORITY$' --expose="$XAUTHORITY" \
--preserve='^DBUS_.*' --expose=/var/run/dbus/system_bus_socket \
--expose="$XDG_RUNTIME_DIR/pulse" \
ungoogled-chromium -- chromium --app="https://meet.jit.si"
With this, I can use the microphone (there is no default microphone available,
but my internal microphone can be selected and works), but I still have no
sound.
ALSA throws the error "The field ipc_gid must be a valid group (create group
audio)", and indeed /etc/group in the container doesn't contain an audio group (only
users and overflow).
But `--expose=/etc/group` prevents the creation of the container with the error
"guix shell: error: rename-file: Device or resource busy".
So the next question is: how does one uses groups in the container?