diff options
| -rw-r--r-- | dotfiles/system/.profile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/dotfiles/system/.profile b/dotfiles/system/.profile index fb9b298..fe14471 100644 --- a/dotfiles/system/.profile +++ b/dotfiles/system/.profile @@ -1,5 +1,5 @@ # .profile - Bourne Shell startup script for login shells -# Craig Jennings <c@cjennings.net> +# Craig Jennings <c@cjennings.net> # The path is normally set through /etc/login.conf. Override it here if wanted. # export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin @@ -24,11 +24,20 @@ export SUDO_EDITOR="$(which vi)" export BROWSER="$(which firefox)" # XDG -export XDG_RUNTIME_DIR=/tmp +# export XDG_RUNTIME_DIR=/tmp export XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/local/share:/usr/share" export XDG_CONFIG_HOME="$HOME/.config/" export XDG_SESSION_TYPE=wayland export XDG_CURRENT_DESKTOP=sway +export XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/share" + +if [ -z "$XDG_RUNTIME_DIR" ]; then + export XDG_RUNTIME_DIR="$HOME/.local/xdg/runtime" + if [ ! -d "$XDG_RUNTIME_DIR" ]; then + mkdir -p "$XDG_RUNTIME_DIR" + chmod 0700 "$XDG_RUNTIME_DIR" + fi +fi # Wayland Related export MOZ_DBUS_REMOTE=1 @@ -46,7 +55,7 @@ alias cdb="cd ~/code/bsdsetup/" alias cdot="cd ~/code/bsdsetup/dotfiles" alias cdr='. ranger' # ranger leaves you in destination directory -# ls - sorting aliases +# ls - sorting aliases alias lt="ls -lthAF" alias ll="ls -lhAF" |
