Resolve Hermes profile homes before package setup

This commit is contained in:
Spencer Bull committed 2026-09-06 22:29:49 -05:00
1 parent 351f188d02
commit beb164a9a2
3 files changed
+80 -9

No files matched your search

+13 -7
View File
@@ -1,18 +1,24 @@
#!/bin/bash
set -euo pipefail
export HERMES_HOME="${HERMES_HOME:-$HOME/.hermes}"
HERMES_HOME=$(realpath -ms "$HERMES_HOME")
root="$HERMES_HOME/hermes-agent"
marker="$root/.omarchy-hermes-desktop"
installer=/usr/share/hermes-desktop/install.sh
cli=("$root/venv/bin/python" "$root/hermes")
die() {
echo "Hermes: $*" >&2
exit 1
}
HERMES_HOME=$(realpath -ms -- "${HERMES_HOME:-$HOME/.hermes}")
# A profile session shares its parent home's installation and launchers.
home_parent=${HERMES_HOME%/*}
if [[ ${home_parent##*/} == "profiles" ]]; then
HERMES_HOME=${home_parent%/*}
fi
[[ $HERMES_HOME == /* && $HERMES_HOME != "/" ]] || die "Use a Hermes data directory other than /."
export HERMES_HOME
root="$HERMES_HOME/hermes-agent"
marker="$root/.omarchy-hermes-desktop"
installer=/usr/share/hermes-desktop/install.sh
cli=("$root/venv/bin/python" "$root/hermes")
desktop_executable() {
local executable
for executable in "$root/apps/desktop/release/linux-unpacked/"{Hermes,hermes}; do