From 1e1b305ba0ad9403058a086afcf0c0b191a2cf20 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sun, 28 Apr 2024 15:01:23 -0400 Subject: [PATCH 1/2] Expose Pipewire socket when it exists --- dobu-run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dobu-run.sh b/dobu-run.sh index 44a21f4..0db2bfc 100755 --- a/dobu-run.sh +++ b/dobu-run.sh @@ -78,6 +78,11 @@ mkdir -p "$home_path/.local/share" extra_args="" +# Expose Pipewire socket if it exists +if [ -S "$XDG_RUNTIME_DIR/pipewire-0" ]; then + extra_args="$extra_args -v $XDG_RUNTIME_DIR/pipewire-0:/xdg_runtime/pipewire-0" +fi + # Check if we should allow /dev/input access if is_in_array "$1" "${DEV_INPUT_APP_ALLOWLIST[@]}"; then if [ -z "${DEV_INPUT_DEVICE_ALLOWLIST+x}" ]; then From f3af5b9cda9d449e03f7c5a483841bf9d5ad8181 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sun, 28 Apr 2024 15:10:29 -0400 Subject: [PATCH 2/2] apps/zrythm: Launch an independent dbus daemon This is required for Zrythm to save its state --- apps/zrythm/Containerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/zrythm/Containerfile b/apps/zrythm/Containerfile index 9c332a5..b13d6b3 100644 --- a/apps/zrythm/Containerfile +++ b/apps/zrythm/Containerfile @@ -48,7 +48,11 @@ RUN git clone https://aur.archlinux.org/zrythm.git && \ WORKDIR /home/user RUN sudo rm -rf /src +# machine-id is required for dconf/gsettings +RUN sudo dbus-uuidgen --ensure LABEL net.typeblog.dobu.desktop_file_path=/usr/share/applications/org.zrythm.Zrythm.desktop -ENTRYPOINT [ "/usr/bin/zrythm" ] +# A dbus daemon is required for Zrythm +# It does not have to share the host one though; launching any random dbus daemon would work +ENTRYPOINT [ "/usr/bin/bash", "-c", "export $(dbus-launch) && /usr/bin/zrythm" ]