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"