On Sat, May 23, 2020 at 08:18:55PM +0800, Paul Wise wrote:
> On Sat, 2020-05-23 at 13:07 +0100, Colin Watson wrote:
> > What do you think?
> 
> I don't think that will work because neither of the DISPLAY nor
> WAYLAND_DISPLAY environment variables are set for user services since
> they are user services *not* session services and systemd does not
> support session services.

OK, fair point.

> You could of course check the session type, but I'm not sure what sets
> that environment variable and if it is present for all Wayland
> compositors. It is also a per-session variable rather than per-user
> variable. So I think my idea of checking if Xsession.options exists is
> best after all.

My concern about that is that it's about what's installed, not what's
active/running for that particular user.  It may not matter in your case
but I'm sure cutting that corner is going to be wrong for somebody.

-- 
Colin Watson (he/him)                              [cjwat...@debian.org]

Reply via email to