[jhbuild/wip/benzea/systemd-user-session: 5/5] examples: Add code to enable systemd user units from jhbuild



commit c1a163d19c7256b54d7e12a0f92bba2cd085bff6
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Apr 23 11:48:58 2019 +0200

    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.

 examples/jhbuild-session | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/examples/jhbuild-session b/examples/jhbuild-session
index 11c0f27c..1012d9e7 100755
--- a/examples/jhbuild-session
+++ b/examples/jhbuild-session
@@ -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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]