Okay, after a bit of fiddling I have managed to disable it in "app vms of 
choice" by simply placing a config that only has 

[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!
On Wednesday, July 12, 2017 at 5:34:15 PM UTC+3, Noor Christensen wrote:
> On Wed, Jul 12, 2017 at 06:17:53AM -0700, daltong defourne wrote:
> > On Wednesday, July 12, 2017 at 3:04:44 AM UTC+3, Salmiakki wrote:
> > > 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!
> > 
> > Hi!
> > Tried that (X-GNOME-Autostart-enabled=false) and pulse still starts
> > 
> > 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 
> 
> I don't know what the X-GNOME-Autostart-enabled does, but here's a short
> summary on how to use the "ShowIn" XDG fields.
> 
> You can provide multiple values for this field. For example, if you only
> want the application to run on AppVMs and DisposableVMs:
> 
> > [Desktop Entry]
> > OnlyShowIn=X-AppVM;X-DisposableVM;
> 
> The "ShowIn" field can also be negated. For example, if you want an
> application to never run in a TemplateVM but anywhere else:
> 
> > [Desktop Entry]
> > NotShowIn=X-TemplateVM;
> 
> From /etc/qubes/autostart/README.txt:
> 
> > 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.
> 
> It is suggested to use ~/.config/autostart if you need to override anything 
> for
> a specific VM. In your case, I guess you want something like the following...
> 
>       # In TemplateVM
>       # /etc/qubes/autostart/qubes-pulseaudio.desktop.d/30_qubes.conf:
> 
>       [Desktop Entry]
>       NotShowIn=X-QUBES;
> 
> On each AppVM you want to enable this application for, create:
> 
>       # ~/.config/autostart/qubes-pulseaudio.desktop.d/30_qubes.conf
> 
>       [Desktop Entry]
>       OnlyShowIn=X-AppVM;
>       NotShowIn=
> 
> Possibly you can skip "OnlyShowIn" and just clear the "NotShowIn" value.
> 
> I have found the following Qubes-specific identifiers so far, partly from an
> earlier qubes-users thread[0]:
> 
>       X-QUBES                 Seems to match any type of Qubes VM
> 
>       X-AppVM                 Any VM except TemplateVM, ProxyVM, NetVM
>       X-NetVM
>       X-ProxyVM
>       X-TemplateVM
>       X-DisposableVM
>       X-UpdateableVM          TemplateVM or StandaloneVM
>       X-NonUpdateableVM       Any VM except UpdateableVM
> 
> Also, here are some non-Qubes identifiers I've seen elsewhere:
> 
>       GNOME
>       KDE
>       MATE
>       Unity
>       Cinnamon
> 
> I am not aware of any way to specify a VM name in this context. Maybe because
> /etc/xdg/autostart is only relevant for a TemplateVM. And when you get to your
> custom files in ~/.config/autostart you are already in a specific VM so no 
> need
> to specify it there.
> 
> If you really want to do it on the TemplateVM and no config on AppVM, I guess
> you could put something in /rw/config/rc.local that only runs if $HOST 
> variable
> matches your VM name.
> 
> [0]  https://groups.google.com/forum/#!topic/qubes-users/smztkltkwOg
> 
> -- noor
> 
> |_|O|_|
> |_|_|O|  Noor Christensen                                  
> |O|O|O|    ~ 0x401DA1E0

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/835b448b-50ad-469c-a365-fb0e1401dda1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to