term_font: Fix font detection for Konsole >= 19.12.0

This commit is contained in:
Michael Straube 2019-12-22 13:38:20 +01:00
parent 8de31f074a
commit 84d76a7ff3

View file

@ -3112,6 +3112,7 @@ END
if ((child == "$(qdbus "$i" "$session" processId)")); then
profile="$(qdbus "$i" "$session" environment |\
awk -F '=' '/KONSOLE_PROFILE_NAME/ {print $2}')"
[[ ! $profile ]] && profile="$(qdbus "$i" "$session" profile)"
break
fi
done