From f98dd80fd75c4d26c2b7a2fde695a1934c4d6dc1 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 8 May 2020 16:09:48 +0200 Subject: [PATCH] xbps-src: allow loading xbp-src.conf from XDG compliant dirs --- xbps-src | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xbps-src b/xbps-src index 68765b6c248..20319101128 100755 --- a/xbps-src +++ b/xbps-src @@ -428,6 +428,10 @@ else elif [ -s $XBPS_DISTDIR/etc/conf ]; then # ... otherwise read generic user configuration... readonly XBPS_CONFIG_FILE=$XBPS_DISTDIR/etc/conf + elif [ -s $XDG_CONFIG_HOME/xbps-src.conf ]; then + readonly XBPS_CONFIG_FILE=$XDG_CONFIG_HOME/xbps-src.conf + elif [ -s $HOME/.config/xbps-src.conf ]; then + readonly XBPS_CONFIG_FILE=$HOME/.config/xbps-src.conf elif [ -s $HOME/.xbps-src.conf ]; then # ... fallback to ~/.xbps-src.conf otherwise. readonly XBPS_CONFIG_FILE=$HOME/.xbps-src.conf