From ce1b4011d409997b10ca205f459cedcb6b292bd7 Mon Sep 17 00:00:00 2001 From: salmon Date: Sun, 9 Aug 2026 23:53:47 +0200 Subject: Make daemon socket/PID paths environment-independent; fix rc service HOME --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ef8ebaf..fbc5ffa 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,11 @@ FreeBSD notes: as rsplayer_user via daemon(8); `service rsplayer status`/`stop`/`restart` work as expected. You can also run `rsp start-daemon` manually from your login shell — `start-daemon`/`stop-daemon`/`restart` behave the same. -- XDG_RUNTIME_DIR is not set by default on FreeBSD, so the daemon socket and PID - file fall back to /tmp/rsplayer/. Set XDG_RUNTIME_DIR in your rc.d script or - shell profile if you prefer a private runtime dir. +- The daemon socket and PID file live in ~/.local/state/rsplayer/ (the XDG + state dir), not in XDG_RUNTIME_DIR: the path is identical whether the daemon + was started by the service or manually. This matters on FreeBSD, where + XDG_RUNTIME_DIR is often unset (previously the fallback was the + world-writable /tmp/rsplayer). - Desktop notifications and MPRIS (playerctl etc.) require a running D-Bus session bus (`pkg install dbus`) and a notification daemon; without them the daemon runs fine, those features are just disabled. -- cgit v1.2.3