[systemd-devel] systemd user service when x is started

Damien Robert damien.olivier.robert+gmane at gmail.com
Fri Nov 7 05:12:29 PST 2014


> My plan is to use after X is started a second target, let's call it
> wm.target, with all services relevant to the X session. For now, I
> have no idea how to define After=
> It can't be right after the console.target as X need to be started first.

I don't understand, if you start X manually, why don't you launch
systemctl --user wm.target from your .xprofile or an equivalent file?

Maybe use systemctl import-environment DISPLAY before to get the correct
$DISPLAY.



More information about the systemd-devel mailing list