我安装了杰克音频连接套件 (JACK),但似乎无法jack_control start
启动该服务。
我正在使用 Slackware64-current,它最近更新了它/etc/dbus-1/system.conf
以具有更严格的配置:
<!-- ... -->
<policy context="default">
<!-- All users can connect to system bus -->
<allow user="*"/>
<!-- Holes must be punched in service configuration files for
name ownership and sending method calls -->
<deny own="*"/>
<deny send_type="method_call"/>
<!-- Signals and reply messages (method returns, errors) are allowed
by default -->
<allow send_type="signal"/>
<allow send_requested_reply="true" send_type="method_return"/>
<allow send_requested_reply="true" send_type="error"/>
<!-- All messages may be received by default -->
<allow receive_type="method_call"/>
<allow receive_type="method_return"/>
<allow receive_type="error"/>
<allow receive_type="signal"/>
<!-- Allow anyone to talk to the message bus -->
<allow send_destination="org.freedesktop.DBus"/>
<!-- But disallow some specific bus services -->
<deny send_destination="org.freedesktop.DBus"
send_interface="org.freedesktop.DBus"
send_member="UpdateActivationEnvironment"/>
</policy>
更新后,jack_control start
以普通用户身份运行会出现以下错误:
--- start
DBus exception: org.jackaudio.Error.Generic: failed to activate
dbusapi jack client. error is -1
以前它没有这样做。新的配置文件说我应该在服务配置文件中为其打一个洞。我什至不太确定 DBUS 与 JACK 有什么关系。
额外的信息:
- JACK2 SVN 修订版 4120 (2011-02-09)
- DBUS版本1.4.1
- DBUS-Python 版本 0.83.1
答案1
我不久前就明白了这一点。原来是 JACK 的 CAS-ARMv7 补丁破坏了 DBUS 功能,我设法使用修复这个补丁。这些问题不久前已在 JACK subversion 存储库中得到解决,现在工作正常。