[systemd-devel] Xorg or Wayland Environment

Mantas Mikulėnas grawity at gmail.com
Sun Sep 19 16:11:08 UTC 2021


On Sun, Sep 19, 2021 at 4:48 PM Ed Greshko <ed.greshko at greshko.com> wrote:

> On 19/09/2021 21:39, Michael Biebl wrote:
>
> A useful command in this context is
>
> systemctl --user show-environment
>
>
> OK, that was helpful.  But leads to another question.
>
> How to run the service only if KDE_FULL_SESSION=true?
>

To be sure, do you mean "if" or "when"?

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.

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)...

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20210919/96f29b17/attachment.htm>


More information about the systemd-devel mailing list