<div dir="ltr"><div dir="ltr">On Sun, Sep 19, 2021 at 4:48 PM Ed Greshko <<a href="mailto:ed.greshko@greshko.com" target="_blank">ed.greshko@greshko.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>On 19/09/2021 21:39, Michael Biebl
wrote:<br>
</div>
<blockquote type="cite">
<pre>A useful command in this context is
systemctl --user show-environment</pre>
</blockquote>
<br>
OK, that was helpful. But leads to another question.<br>
<br>
How to run the service only if KDE_FULL_SESSION=true? <br></div></blockquote><div><br></div><div>To be sure, do you mean "if" or "when"?</div><div><br></div><div>You could check using [Unit] ConditionEnvironment=, sure, but if the actual problem is that the unit is started too early, this won't help -- it won't actually get delayed "until KDE_FULL_SESSION becomes true", it just won't be run at all.</div><div><br></div><div>You said that the service runs at the login screen -- I'm not sure how this can happen if your service is installed into plasma-core.target.wants/ (and *not* in default.target.wants nor basic.target.wants)...</div></div><div><br></div>-- <br><div dir="ltr"><div dir="ltr">Mantas Mikulėnas</div></div></div>