On 12/16/18 4:59 PM, unman wrote:
On Sun, Dec 16, 2018 at 02:27:39PM +0200, Ivan Mitev wrote:
On 12/16/18 2:16 PM, unman wrote:
On Tue, Dec 11, 2018 at 08:54:45AM +0200, Ivan Mitev wrote:
On 12/10/18 10:05 PM, daltong defourne wrote:
Hello!
I'm trying to exclude a service that is started by XDG-autostart from starting
up only on SOME app-VMs based on same template-VM (so deleting the .desktop
file from appvm completely is not an option)
After reading some comments on github from long ago (like this one here
https://github.com/QubesOS/qubes-issues/issues/137#issuecomment-77752422 ) I
have concluded that I theoretically should be able to use NotShowIn in the
desktop file.
However, putting a
NotShowIn=personal;work
into
/etc/xdg/autostart/pulseaudio.desktop
did not help me to prevent pulse startup in VM named personal and vm named work
What am I doing wrong?
You can only specify a VM type (AppVM, NetVM, ...), not a VM name.
Is doing what I want even possible?
In theory yes (haven't tested it): you'll have to put a .desktop in
$HOME/.config/autostart/ with 'Hidden=true' in each of the *AppVM* you want
the .desktop app to be disabled.
P.S.
Still Qubes 3.2 because I am windows-VM dependent
FWIW I'm using R4 both with R3.2 imported win VMs as well as ones created in
R4 and I don't have any problems (but then I use QWT from R3.2 - didn't
manage to have the newer QWT work; see issue #3585).
PS: please send such posts to qubes-users@
It would surely be easier to use bind-dirs to have a qube specific
autostart?
I've never used bind-dirs ; looking at the doc I don't see how that could be
*easily* used for the OP's problem, can you elaborate ?
(genuinely interested - I'm likely missing something).
Set up bind-dirs with binds+=( '/etc/xdg/autostart' )
On reboot the qube will have the autostart directory held in /rw.
Remove the pulseaudio and qubes-pulseaudio files from
/etc/xdg/autostart.
Reboot
Done.
OK - that's what I thought could be done after reading the doc.
Alternatively, remove those files from the TEMPLATE and use bind-dirs to
start the services in the few qubes where it's wanted, by including the
file in binded /etc/xdg/autostart.
In both cases, overriding the content of the *whole* directory is a bit
heavy-handed IMO. Moreover the templateVM and the AppVMs will get
out-of-sync when packages in the template that change/add stuff to
autostart/ are upgraded/installed.
Surely easier than custom desktop files?
Frankly, I'm not sure ; the OP wanted to prevent pulseaudio from
starting in two AppVMs:
Solution 1- create a single-line .desktop file in two AppVMs
Solution 2- configure bind dirs, copy the template's autostart/*.desktop
files to both AppVM minus the service(s) you don't want. And then try
not to forget to keep the .desktop files in sync when upgrading the
template.
So, considering the OP's needs, I'd say that 1- is quicker and easier to
implement than 2-, but maybe you'll disagree (not trying to argue!).
You can use (and abuse) bind-dirs for almost complete qube
customisation. Well worth using.
Indeed, it's quite powerful. Will keep that in mind for future heavy
qubes customization.
Cheers
Ivan
--
You received this message because you are subscribed to the Google Groups
"qubes-devel" 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-devel/7ba6b939-109f-4022-5e4a-f216f89d86c1%40maa.bz.
For more options, visit https://groups.google.com/d/optout.