It would be best to submit a bug report for this issue. We use GitHub (https://github.com/ghostbsd/) for tracking feature requests & bug reports.
To submit a bug report, go to ghostbsd/issuesissues/new?assignees=&labels=bug&template=bug_report.yaml
To suggest a new feature, go to ghostbsd/issuesissues/new?assignees=&labels=feature&template=feature_request.yaml
However, here is a one-time script to help in the meanwhile.
#!/bin/sh
# Set XDG_RUNTIME_DIR using the current user ID
export XDG_RUNTIME_DIR="/tmp/runtime-$(id -u)"
# Create the runtime and pulse subdirectory if missing
if [ ! -d "$XDG_RUNTIME_DIR/pulse" ]; then
mkdir -p "$XDG_RUNTIME_DIR/pulse"
chmod 700 "$XDG_RUNTIME_DIR"
fi
# Optional: Create client.conf for PulseAudio
mkdir -p "$HOME/.config/pulse"
echo "default-runtime-dir = $XDG_RUNTIME_DIR/pulse" > "$HOME/.config/pulse/client.conf"
# Optional: Notify user (can be removed in silent login)
echo "✔ XDG_RUNTIME_DIR set to $XDG_RUNTIME_DIR"
Save this script:
nano ~/setup-runtime-dir.sh
# Paste the code, save with Ctrl+O, Enter, then Ctrl+X
chmod +x ~/setup-runtime-dir.sh
Source it in login scripts:
Add this line to ~/.profile
and ~/.xinitrc
:
[ -f "$HOME/setup-runtime-dir.sh" ] && . "$HOME/setup-runtime-dir.sh"