~rycwo/workspace

f7e6facb675bb5e055fd37db8e3088d3e69e1093 — Ryan Chan 7 months ago 05ddbbe
Create XDG_RUNTIME_DIR in .bash_profile if missing
1 files changed, 13 insertions(+), 0 deletions(-)

M .bash_profile
M .bash_profile => .bash_profile +13 -0
@@ 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