Skip to content

Commit

Permalink
Fix alsaloop service failing to start (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wassup789 authored May 15, 2024
1 parent b884d67 commit 06adbe5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions buildroot/package/hifiberry-alsaloop/dbus.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- This configuration file specifies the required security policies
for alsaloop daemon to work. -->

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

<!-- Root can own the alsaloop service -->
<policy user="root">
<allow own="org.mpris.MediaPlayer2.alsaloop"/>
</policy>

</busconfig>
2 changes: 2 additions & 0 deletions buildroot/package/hifiberry-alsaloop/hifiberry-alsaloop.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ HIFIBERRY_ALSALOOP_SITE = $(call github,hifiberry,alsaloop,$(HIFIBERRY_ALSALOOP_
define HIFIBERRY_ALSALOOP_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/opt/alsaloop
cp -rv $(@D)/* $(TARGET_DIR)/opt/alsaloop
$(INSTALL) -D -m 0644 $(BR2_EXTERNAL_HIFIBERRY_PATH)/package/hifiberry-alsaloop/dbus.conf \
$(TARGET_DIR)/etc/dbus-1/system.d/alsaloop.conf
endef


Expand Down

0 comments on commit 06adbe5

Please sign in to comment.