<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Jul 6, 2016 at 10:51 AM Colin Guthrie <<a href="mailto:gmane@colin.guthr.ie">gmane@colin.guthr.ie</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Martin Pitt wrote on 04/07/16 23:08:<br>
>> > Why would you call it graphical-<$DE>.slice as opposed to simply <$DE>.slice<br>
>> > which is part of the <$DE>.target and graphical target is link to that<br>
>> > <$DE>.targetĀ  ( if shipped upstream it needs to be generic enough to cater<br>
>> > whatever is out there right )<br>
> target units don't work well as they don't stop their dependencies on<br>
> stop, as I explained -- unless there's a trick which I'm missing?<br>
<br>
Not commenting on the general approach (which I did read and broadly<br>
agree with without giving it too much thought!), but could you use<br>
PartOf= here to make the target approach work? It might be more hacky as<br>
each user .service would have to declare themselves to be PartOf the<br>
corresponding .target. This does mean that if the target is stopped, the<br>
units are stopped too.<br>
<br>
I'm not sure how this would work regarding things like g-s-d which you<br>
want in multiple DEs.. perhaps the gnome.target would have to be split<br>
up into gnome-base.target and gnome.target to allow for this use case?<br>
Or perhaps g-s-d could just become bus activated and not need any direct<br>
starting?<br></blockquote><div><br></div><div>How about a top-level, generic graphical.target that defines no dependencies itself, but is Required by anything graphical. Then stopping graphical.target would terminate the desktop, no matter which environment was set up.<br><br></div><div>I was thinking of a direct Requires on all units, but maybe transitive Requires via intermediate targets would be useful, too.<br></div></div></div>