From fc341b7305e49afa50519bb1a767ab13e1c99ff6 Mon Sep 17 00:00:00 2001 From: Cassidy James Blaede Date: Tue, 19 Nov 2024 11:18:33 -0700 Subject: [PATCH] Hooks: Add hook to expose Endless Key launchers in app grid https://phabricator.endlessm.com/T35614 Co-authored-by: Will Thompson Co-authored-by: Dan Nicholson --- hooks/image/54-ek-launchers | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 hooks/image/54-ek-launchers diff --git a/hooks/image/54-ek-launchers b/hooks/image/54-ek-launchers new file mode 100644 index 00000000..53e010c5 --- /dev/null +++ b/hooks/image/54-ek-launchers @@ -0,0 +1,10 @@ +# Expose Endless Key launchers in the app grid (once a specific content pack has been downloaded) + +mkdir -p "${OSTREE_DEPLOYMENT}/etc/systemd/user-environment-generators" +cat <<- 'EOF' > "${OSTREE_DEPLOYMENT}/etc/systemd/user-environment-generators/62-endless-key.sh" + #!/bin/bash + + XDG_DATA_DIRS="/var/lib/endless-key/data/content/xdg/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" + echo "XDG_DATA_DIRS=$XDG_DATA_DIRS" +EOF +chmod 755 "${OSTREE_DEPLOYMENT}/etc/systemd/user-environment-generators/62-endless-key.sh"