Compare commits

...

2 commits

Author SHA1 Message Date
f3af5b9cda apps/zrythm: Launch an independent dbus daemon
This is required for Zrythm to save its state
2024-04-28 15:10:29 -04:00
1e1b305ba0 Expose Pipewire socket when it exists 2024-04-28 15:01:23 -04:00
2 changed files with 10 additions and 1 deletions

View file

@ -48,7 +48,11 @@ RUN git clone https://aur.archlinux.org/zrythm.git && \
WORKDIR /home/user WORKDIR /home/user
RUN sudo rm -rf /src 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 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" ]

View file

@ -78,6 +78,11 @@ mkdir -p "$home_path/.local/share"
extra_args="" 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 # Check if we should allow /dev/input access
if is_in_array "$1" "${DEV_INPUT_APP_ALLOWLIST[@]}"; then if is_in_array "$1" "${DEV_INPUT_APP_ALLOWLIST[@]}"; then
if [ -z "${DEV_INPUT_DEVICE_ALLOWLIST+x}" ]; then if [ -z "${DEV_INPUT_DEVICE_ALLOWLIST+x}" ]; then