feat: podman unprivileged user shell profile

This commit is contained in:
Hane 2026-06-01 16:46:01 +02:00
commit f9f3c1afe4
2 changed files with 19 additions and 1 deletions

16
.profile Normal file
View file

@ -0,0 +1,16 @@
# Set XDG_CONFIG_HOME dir to default
export XDG_CONFIG_HOME="$HOME/.config"
# Init XDG_RUNTIME_DIR directory for current user
UID=$(id -u)
if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/xdg/$UID-xdg-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir -p "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
fi
#Start user default runlevel
#openrc -U default

View file

@ -1,3 +1,5 @@
# pihanepi
My own little slice of digital world, crafted to my whims
.profile file to be used by podman unpriviledge user at the very least. Provides XDG spec variable initialization.