10 lines
297 B
Bash
Executable file
10 lines
297 B
Bash
Executable file
#!/bin/sh
|
|
# Keep YAMS state local to this engine project.
|
|
set -eu
|
|
|
|
root=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd)
|
|
export XDG_CONFIG_HOME="$root/.config"
|
|
export XDG_STATE_HOME="$root/.state"
|
|
export YAMS_DAEMON_SOCKET="$root/.state/yams-daemon.sock"
|
|
|
|
exec yams --data-dir "$root/.yams" "$@"
|