Commit c1a163d1 authored by Benjamin Berg's avatar Benjamin Berg

examples: Add code to enable systemd user units from jhbuild

When switching to start GNOME using systemd we need to pick up the user
defined units from inside the jhbuild environment. Do so by copying them
into the users runtime directory.
parent 83aaa70e
......@@ -11,6 +11,11 @@ XDG_CONFIG_DIRS=${GNOME}/etc/xdg
export PATH LD_LIBRARY_PATH PYTHONPATH PKG_CONFIG_PATH GDK_USE_XFT XDG_DATA_DIRS XDG_CONFIG_DIRS
# Pick up systemd units defined in jhbuild
mkdir -p "$XDG_RUNTIME_DIR/systemd/user.control"
command cp -r ${GNOME}/lib/systemd/user/* "$XDG_RUNTIME_DIR/systemd/user.control"
systemctl --user daemon-reload
#exec valgrind --tool=memcheck --log-file=/tmp/session-grind.log ${GNOME}/bin/gnome-session
exec ${GNOME}/bin/gnome-session --debug
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment