From 48f7e2f8311b8716b01c23501123d6bdb5a086bb Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Thu, 29 Sep 2022 00:07:25 -0700 Subject: [PATCH] app: support XDG_CONFIG_HOME for git-bindir Allow users to control where git-cola looks for git-bindir by supporting the XDG_CONFIG_HOME environment variable. Related-to: #1258 Signed-off-by: David Aguilar --- cola/app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cola/app.py b/cola/app.py index 676133a49..265463c31 100644 --- a/cola/app.py +++ b/cola/app.py @@ -634,9 +634,7 @@ def find_git(): # If the user wants to use a Git/bin/ directory from a non-standard # directory then they can write its location into # ~/.config/git-cola/git-bindir - git_bindir = os.path.expanduser( - os.path.join('~', '.config', 'git-cola', 'git-bindir') - ) + git_bindir = resources.config_home('git-bindir') if core.exists(git_bindir): custom_path = core.read(git_bindir).strip() if custom_path and core.exists(custom_path):