profile.d: add 99-userapps.sh

This commit is contained in:
Aminda Suomalainen 2024-07-16 10:53:05 +03:00
parent f58d2c4488
commit 0bcc159eb3
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -0,0 +1,11 @@
# Heavily copied and modified from /etc/profile.d/snapd.sh
local_bin_path="$HOME/.local/bin"
if [ -n "${PATH##*${local_bin_path}}" ] && [ -n "${PATH##*${local_bin_path}:*}" ]; then
export PATH="$PATH:${local_bin_path}"
fi
local_xdg_path="$HOME/.local/share"
if [ -n "${XDG_DATA_DIRS##*${local_xdg_path}}" ] && [ -n "${XDG_DATA_DIRS##*${local_xdg_path}:*}" ]; then
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:${local_xdg_path}"
fi