<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 27, 2018, 01:11 Alberto Salvia Novella <<a href="mailto:es20490446e@gmail.com">es20490446e@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<span style="color:rgb(51,51,51);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(252,253,254);text-decoration-style:initial;text-decoration-color:initial;display:inline!important;float:none">I'm writing a SystemD service for a
daemon that it only works in user mode. Its name is <a href="https://github.com/agalakhov/xiccd/issues/20" target="_blank">Xiccd</a>.<br>
<br>
</span><span style="color:rgb(51,51,51);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(252,253,254);text-decoration-style:initial;text-decoration-color:initial;display:inline!important;float:none">The problem I’m having is that either I
can enable the service as system wide, or per user. But I cannot
enable it in user mode for all users, only user by user.<br>
<br>
I just liked the daemon to be started like XDG Autostart does, but
with the extra capabilities of SystemD. The point is that I have
found no way to do that, neither in the documentation online or by
asking people.<br>
</span>
<div class="m_-8835605863026000269moz-signature"></div></div></blockquote></div><div><br></div><div>Note that systemd --user with the suggested default.target is *not* the same as XDG Autostart: instead of starting for every graphical session, units in this target start *before* the session (i.e. before X11 exists) and a single instance of the service is shared across all sessions (graphical, console, SSH...)</div><div><br></div><div>It is not uncommon to start graphical session components from systemd --user, but default.target is not suitable for that. (There currently isn't a standard .target that'd be suitable; it would need to be launched *by* the graphical session manager, so until they all are taught about systemd...)</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><p dir="ltr">Mantas Mikulėnas</p>
</div>