From b0d8339c69294a3f191b5017cef5f5d6fe531e8f Mon Sep 17 00:00:00 2001 From: Anton Bulakh Date: Sun, 25 Sep 2022 17:45:20 +0300 Subject: [PATCH] Fix awesomewm theme detection hardcoded path Fixing my own line of code because since then I've moved to NixOS and learned that FHS is not the absolute truth :) --- screenfetch-dev | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screenfetch-dev b/screenfetch-dev index 0b782d4c..99691feb 100755 --- a/screenfetch-dev +++ b/screenfetch-dev @@ -2489,8 +2489,8 @@ detectwmtheme () { Win_theme="Not Applicable" ;; 'Awesome') - if [ -f "/usr/bin/awesome-client" ]; then - Win_theme="$(/usr/bin/awesome-client "return require('beautiful').theme_path" | grep -oP '[^/]*(?=/"$)')" + if type -p awesome-client >/dev/null 2>&1; then + Win_theme="$(awesome-client "return require('beautiful').theme_path" | grep -oP '[^/]*(?=/"$)')" fi ;; 'BlackBox')