From 97df0b969f5f6cea637a1e512abfb34fa400f77c Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Thu, 7 May 2020 21:04:09 +0200 Subject: Follow XDG Base Directory Specification for Config Directories --- rofi-pass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rofi-pass b/rofi-pass index d5bde34..ab07cd4 100755 --- a/rofi-pass +++ b/rofi-pass @@ -17,6 +17,7 @@ _image_viewer () { feh - } +config_dir=${XDG_CONFIG_HOME:-$HOME/.config} cache_dir=${XDG_CACHE_HOME:-$HOME/.cache} # We expect to find these fields in pass(1)'s output @@ -777,7 +778,7 @@ EOF get_config_file () { configs=("$ROFI_PASS_CONFIG" - "$HOME/.config/rofi-pass/config" + "$config_dir/rofi-pass/config" "/etc/rofi-pass.conf") # return the first config file with a valid path -- cgit