diff --git a/.profile b/.profile new file mode 100644 index 0000000..36cb708 --- /dev/null +++ b/.profile @@ -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 diff --git a/README.md b/README.md index 6b2e842..003209a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # pihanepi -My own little slice of digital world, crafted to my whims \ No newline at end of file +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.