fork/home-manager

git clone https://git.julia.blue/fork/home-manager

arcnmxxsession: cleanup systemd variables (#3636)78ceec68

master
612 B20 linesraw
1if [ -z "$HM_XPROFILE_SOURCED" ]; then
2  . "/home/hm-user/.xprofile"
3fi
4unset HM_XPROFILE_SOURCED
5
6systemctl --user start hm-graphical-session.target
7
8init extra commands
9
10window manager command
11
12systemctl --user stop graphical-session.target
13systemctl --user stop graphical-session-pre.target
14
15# Wait until the units actually stop.
16while [ -n "$(systemctl --user --no-legend --state=deactivating list-units)" ]; do
17  sleep 0.5
18done
19
20systemctl --user unset-environment 'DBUS_SESSION_BUS_ADDRESS' 'DISPLAY' 'SSH_AUTH_SOCK' 'XAUTHORITY' 'XDG_DATA_DIRS' 'XDG_RUNTIME_DIR' 'XDG_SESSION_ID' 'EXTRA_IMPORTED_VARIABLE'