Skip to content

Commit

Permalink
Merge pull request #168 from endlessm/T35614-ek-launchers
Browse files Browse the repository at this point in the history
Hooks: Add hook to expose Endless Key launchers in app grid
  • Loading branch information
wjt authored Nov 29, 2024
2 parents ec57796 + fc341b7 commit 0f344fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hooks/image/54-ek-launchers
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 0f344fc

Please sign in to comment.