]> xenbits.xensource.com Git - libvirt.git/commitdiff
daemon: Export SDL audio environment variables
authorCole Robinson <crobinso@redhat.com>
Wed, 19 May 2010 20:03:52 +0000 (16:03 -0400)
committerCole Robinson <crobinso@redhat.com>
Fri, 21 May 2010 16:48:34 +0000 (12:48 -0400)
/etc/sysconfig/libvirtd has a few environment variables for configuring
libvirt SDL audio. The libvirtd process doesn't see these, however, because
they are never exported. Let's export the variables after sourcing the
sysconfig script.

There is another problem here that the commented out values in the
sysconfig script are not neccessarily the actual defaults, we are qemus
mercy here. Not sure how to solve that.

daemon/libvirtd.init.in

index 809433e83fad4d8c488a9e9b28aecc9187735d54..aa7870c86c28ff2dc3819bbb59804c56f596586a 100644 (file)
@@ -45,6 +45,9 @@ KRB5_KTNAME=/etc/libvirt/krb5.tab
 
 test -f @sysconfdir@/sysconfig/libvirtd && . @sysconfdir@/sysconfig/libvirtd
 
+export QEMU_AUDIO_DRV
+export SDL_AUDIODRIVER
+
 LIBVIRTD_CONFIG_ARGS=
 if [ -n "$LIBVIRTD_CONFIG" ]
 then