diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-11 12:57:29 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-11 12:57:29 -0500 |
| commit | cc99d32d177bccec3c026fb9208263b7e82db4dc (patch) | |
| tree | 0c45a2c0a8489ba955bbf7dd89d0f86873701fda | |
| parent | be85c1435815393e128c1158771eadb16fe64c2e (diff) | |
fix issue with black screen & XDG_RUNTIME_DIR
if XDG_RUNTIME_DIR points to /tmp, the user doesn't have proper
permissions on that directory which triggers hang.
| -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" |
