From f7e6facb675bb5e055fd37db8e3088d3e69e1093 Mon Sep 17 00:00:00 2001 From: Ryan Chan Date: Sun, 23 Oct 2022 15:56:15 +0100 Subject: [PATCH] Create XDG_RUNTIME_DIR in .bash_profile if missing --- .bash_profile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.bash_profile b/.bash_profile index 29de63b..42fd8db 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,3 +1,16 @@ [[ -f ~/.bashrc ]] && . ~/.bashrc +# Create XDG_RUNTIME_DIR for Alpine Linux. Normally this is handled by +# pam_systemd on Arch Linux. +if [[ -z "$XDG_RUNTIME_DIR" ]]; then + export XDG_RUNTIME_DIR="/tmp/""$(id -u)""-runtime-dir" + if [[ ! -d "$XDG_RUNTIME_DIR" ]]; then + mkdir "$XDG_RUNTIME_DIR" + chmod 0700 "$XDG_RUNTIME_DIR" + fi +fi + PATH="$PATH"":""$HOME""/dev/repos/workspace/bin" + +# Use Wayland mode +export MOZ_ENABLE_WAYLAND=1 -- 2.38.5