Skip to content

Commit

Permalink
Hooks: Add hook to expose Endless Key launchers in app grid
Browse files Browse the repository at this point in the history
https://phabricator.endlessm.com/T35614

Co-authored-by: Will Thompson <[email protected]>
Co-authored-by: Dan Nicholson <[email protected]>
  • Loading branch information
3 people committed Nov 29, 2024
1 parent ec57796 commit fc341b7
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 fc341b7

Please sign in to comment.