ework-aio 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/install.sh +6 -1
  2. package/package.json +1 -1
package/bin/install.sh CHANGED
@@ -204,7 +204,12 @@ ensure_user_session() {
204
204
  if [[ -z "${XDG_RUNTIME_DIR:-}" && -d "$rundir" ]]; then
205
205
  export XDG_RUNTIME_DIR="$rundir"
206
206
  fi
207
- if [[ -z "${DBUS_SESSION_BUS_ADDRESS:-}" && -S "${XDG_RUNTIME_DIR}/bus" ]]; then
207
+ # ${XDG_RUNTIME_DIR:-} not bare ${XDG_RUNTIME_DIR}: the first if above only
208
+ # exports when /run/user/$uid exists. On hosts without linger / without any
209
+ # login session, /run/user/$uid is absent, XDG_RUNTIME_DIR stays unset, and
210
+ # `set -u` would kill install here before the systemd_reachable() fallback
211
+ # can route to PID-file mode.
212
+ if [[ -z "${DBUS_SESSION_BUS_ADDRESS:-}" && -S "${XDG_RUNTIME_DIR:-}/bus" ]]; then
208
213
  export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
209
214
  fi
210
215
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-aio",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "All-in-one installer for ework (issue tracker) + ework-daemon (AI bridge) + opencode-ework (plugin). One command: npm i -g ework-aio && ework-aio install.",
5
5
  "type": "module",
6
6
  "license": "MIT",