I'm using systemctl --user
for a lot of user services on my Linux desktop.
One of the things I'm doing (per "Starting A DBus Session Application from systemd User Mode") as a hack to get my environment variables from my session is that I'm running a manual script on startup of the graphical session which calls systemctl --user import-environment
. I then have a dummy service which I start via systemctl --user start environment.service
. All of my other services which are enabled depend on environment.service
.
I figure this would probably make a better target than a service. Is there a way to create a target which must be explicitly started via systemctl --user start user-login-graphical.target
?