From c62c43499f35030949253c1408833925b42ea3f5 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 27 Feb 2021 15:55:53 -0600 Subject: HOTFIX: actually LOAD the config file Bollux was trying to load the config from $XDG_CONFIG_DIR, which /isn't/ anything, so far as XDG is concerned. It's been fixed to XDG_CONFIG_HOME -- and I've added a DEBUG variable to make debugging stuff /even easier/ later. --- bollux | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100755 => 100644 bollux diff --git a/bollux b/bollux old mode 100755 new mode 100644 index ac17842..697447f --- a/bollux +++ b/bollux @@ -120,10 +120,11 @@ bollux_args() { # process config file and set variables bollux_config() { - : "${BOLLUX_CONFIG:=${XDG_CONFIG_DIR:-$HOME/.config}/bollux/bollux.conf}" + : "${BOLLUX_CONFIG:=${XDG_CONFIG_HOME:-$HOME/.config}/bollux/bollux.conf}" if [ -f "$BOLLUX_CONFIG" ]; then # shellcheck disable=1090 + log debug "Loading config file '$BOLLUX_CONFIG'" . "$BOLLUX_CONFIG" else log debug "Can't load config file '$BOLLUX_CONFIG'." @@ -1121,5 +1122,6 @@ history_forward() { } if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then + ${DEBUG:-false} && set -x run bollux "$@" fi -- cgit 1.4.1-21-gabe81