Basically, I want to disable pulseaudio for stuff like firewall VM and VPN VM and the like.
They don't need it and it makes pavucontrol pannel a mess.
I tried just doing a
sudo pactl exit
in terminal of VMs that don't need sound and it works like a charm
HOWEVER
inserting a
pactl exit
line into
/rw/config/rc.local
has no effect pulse still starts after reboot and the VM is still seen in pavucontrol)
All other commands in rc. local are executed as expected, so it's not a rc.local issue per se, but rather maybe something like pulseaudio startup thing.
Any pointers as to how to reliably "de-pulse-ize" VMs at startup?
P.S.: uninstalling pulseaudio from template breaks things for me on several VMs and is not an option.
Is it possible to do this on a per-app-VM basis and not on a per-template basis?
> Is it possible to do this on a per-app-VM basis and not on a per-template basis?
>
> > TemplateVMs. There is a "OnlyShowIn" that can be used to define in what VMs
> > the application should autostart, either **by name** or type
> > (appvm/templatevm etc).
Shouldn't that cover your use-case?
> This mechanism overrides only content of /etc/xdg/autostart, files placed in
> ~/.config/autostart are unaffected, so can be used to override settings per-VM
> basis.
This seems to work:
in /etc/qubes/autostart/qubes-pulseaudio.desktop.d/30_qubes.conf
put this:
[Desktop Entry]
OnlyShowIn=X-AppVM;
Now only AppVMs have audio.
Putting a name in there did not work for me but going to an AppVM and doing this:
mkdir ~/.config/autostart
cp /etc/xdg/autostart/pulseaudio.desktop ~/.config/autostart/
and adding X-GNOME-Autostart-enabled=false
to that worked!
Does it have to be the only line there (I mostly kept the original content)
I also tried doing those manipulations with qubes-pulseaudio.desktop file, to no result
[Desktop Entry]
OnlyShowIn=X-TemplateVM;
in "override" directory (~/.config/autostar) for pulseaudio
However, templates that have startup parameters for both pulseaudio and qubes-pulseaudio need both overriden as separate entries
Thanks a huge lot!
You fellows rule!
> |O|O|O| ~ 0x401DA1E0