This commit is contained in:
2025-11-16 22:14:53 -05:00
parent 6c3aa6d257
commit 90ef1bbba2
11 changed files with 420 additions and 19 deletions

View File

@@ -0,0 +1,16 @@
# shellcheck shell=bash
if [ "$UID" -ne 0 ]; then
DOCKER_HOST="unix:///run/user/$UID/podman/podman.sock"
export DOCKER_HOST
if [ -z "${XDG_RUNTIME_DIR:-}" ] && [ -d "/run/user/$UID" ]; then
XDG_RUNTIME_DIR="/run/user/$UID"
export XDG_RUNTIME_DIR
fi
if [ -z "${DBUS_SESSION_BUS_ADDRESS:-}" ] && [ -S "$XDG_RUNTIME_DIR/bus" ];
then
DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"
export DBUS_SESSION_BUS_ADDRESS
fi
fi