From 7c13b751d2001c3ec8bbd4b22e4716267d3cd3e3 Mon Sep 17 00:00:00 2001 From: zsmith Date: Mon, 11 Aug 2025 15:40:58 -0500 Subject: Only source user-dirs file when it exists --- sh/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/profile b/sh/profile index e17f02d..abc7f66 100644 --- a/sh/profile +++ b/sh/profile @@ -2,7 +2,7 @@ export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"} export XDG_CACHE_HOME=${XDG_CACHE_HOME:="$HOME/.cache"} export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:="$HOME/.config"} -. "$HOME/.config/user-dirs.dirs" +[ -f "$XDG_CONFIG_HOME/user-dirs.dirs" ] && . "$HOME/.config/user-dirs.dirs" export XDG_CURRENT_DESKTOP="Hyprland" export XDG_DOCUMENTS_DIR=${HOME}/Documents export XDG_DOWNLOAD_DIR=${HOME}/Downloads -- cgit v1.2.3