From 3f7a93a949e706bb4271dd9828e6930cf0e5d21d Mon Sep 17 00:00:00 2001 From: fanyx Date: Thu, 27 Apr 2023 11:25:50 +0200 Subject: [PATCH] Enable .local/share/applications --- .void.profile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.void.profile b/.void.profile index 803a430..9fc5823 100644 --- a/.void.profile +++ b/.void.profile @@ -1,5 +1,19 @@ [ -n "$BASH_VERSION" ] && [ -f $HOME/.bashrc ] && . $HOME/.bashrc +for x in \ + "$HOME/.local/share" \ + "/usr/share" \ + "/usr/local/share" \ + ; do + [ -d "$x" ] || continue + case ":${XDG_DATA_DIRS}:" in + *":${x}:"*) ;; + *) XDG_DATA_DIRS="${XDG_DATA_DIRS:+$XDG_DATA_DIRS:}${x}" ;; + esac +done + +export XDG_DATA_DIRS + export XDG_CACHE_HOME=$HOME/.cache export XDG_CONFIG_HOME=$HOME/.config export XDG_DATA_HOME=$HOME/.data