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

arnaud gaboury arnaud.gaboury at gmail.com
Sat Nov 8 05:11:14 PST 2014


> As I said, you just need to ensure that when you startx, your session
> launch 'systemctl --user wm.target' automatically. I put this command in my
> '.xprofile' (because the *DM usually source this file), and my .xinitrc
> contains
> [ -r "$HOME/.xprofile" ] && . "$HOME/.xprofile"
> so it works with startx too.


very good indeed. Like a bozo, I was not aware of this ~/.xprofile.
Just for other users, the correct command to include is:

'systemctl --user start wm.target

Thank you for your help, and drink a Bordeaux glass for me.

-- 

google.com/+arnaudgabourygabx


More information about the systemd-devel mailing list