diff --git a/neofetch b/neofetch index 67f7c184..9d90d852 100755 --- a/neofetch +++ b/neofetch @@ -2926,7 +2926,8 @@ END # Get Process ID of current konsole window / tab child="$(get_ppid "$$")" - IFS=$'\n' read -d "" -ra konsole_instances < <(qdbus | grep -F 'org.kde.konsole') + IFS=$'\n' read -d "" -ra konsole_instances \ + < <(qdbus | awk '/org.kde.konsole/ {print $1}') for i in "${konsole_instances[@]}"; do IFS=$'\n' read -d "" -ra konsole_sessions < <(qdbus "$i" | grep -F '/Sessions/')