Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooks: Add hook to expose Endless Key launchers in app grid #168

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
cassidyjames marked this conversation as resolved.
Show resolved Hide resolved
#!/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
cassidyjames marked this conversation as resolved.
Show resolved Hide resolved
chmod 755 "${OSTREE_DEPLOYMENT}/etc/systemd/user-environment-generators/62-endless-key.sh"