<div class="gmail_quote">On Mon, Jan 9, 2012 at 2:51 PM, Kay Sievers <span dir="ltr"><<a href="mailto:kay.sievers@vrfy.org">kay.sievers@vrfy.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Mon, Jan 9, 2012 at 17:44, Alessandro Delgado <<a href="mailto:adelgado1313@gmail.com">adelgado1313@gmail.com</a>> wrote:<br>
> I would like to know if anybody knows something on using systemd as a<br>
> session manager. What I mean as a session manager is something responsable<br>
> for having some programs that I'd like to be running under certain<br>
> circumpstances run under those. (e.g. nm-applet, xfcce4-power-manager,<br>
> gnome-sound-applet etc.)<br>
><br>
> The solution I use right now is to either put those on my .xinitrc or start<br>
> those using the methods of whichever environment I happen to be using. I<br>
> tend to use minimalistic window managers with many small programs to use as<br>
> envionment, so that means scripting.<br>
><br>
> It is sub-optimal for several reasons:<br>
><br>
> a) Sometimes if you restart your window manager you get several instances of<br>
> notification icons<br>
> b) If you plug a new monitor on the computer sometimes the same effect<br>
> happens<br>
> c) If any of the programs halt, they won't restart automatically<br>
> d) They are started as a shell spawn, serially, which can feel extremely<br>
> slow, instead of in parallel<br>
><br>
> This is also fact with applications that I want to autostart, such as<br>
> Firefox, Liferea, Pidgin, terminal etc.<br>
><br>
><br>
> Basically, I would like to know is: If there is a clean way to do this in<br>
> systemd? Is it meant for it in some way or not even considered?<br>
><br>
> P.S. Of course, I run systemd as my init system; I'm thinking aditionally to<br>
> that.<br>
<br>
</div></div>We have 'systemd --user', which is supposed to run for every logged-in<br>
user, but not for every session. We do not really, and do not plan, to<br>
support running the same stuff twice for the same user.<br>
<br>
So far we did not really implement anything advanced for --user, and<br>
did not even thing everything through. It might happen in a few<br>
months, no specific plans so far, we are currently too busy to get the<br>
--system stuff working.<br>
<span class="HOEnZb"><font color="#888888"><br>
Kay<br>
</font></span></blockquote></div><br>Is there some way to build a target/service in such a way that it is only available when systemd is called with --user flag?<br><br>I don't know of any other piece of software that accounts for these needs, but I'd apreciate ideas, though.<br>
<br>It seems systemd, even if it needed modifications, would be rather fit for this purpose.<br>