summaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2019-02-03 03:36:22 +0300
committerDominik Ritter <dritter03@googlemail.com>2019-02-03 03:36:22 +0300
commit4b9ccc33bf9279b9bcb575f5088d0a139aeef71e (patch)
tree3e964316a325e63b9415f3d2ec5578e4195bd820 /debug
parent22f6495005dc999244e931d3dab44d7ca063a272 (diff)
Fix issues with debug/fonts script in Konsole
Diffstat (limited to 'debug')
-rwxr-xr-xdebug/font-issues.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug/font-issues.zsh b/debug/font-issues.zsh
index 82f8e60b..6b505d36 100755
--- a/debug/font-issues.zsh
+++ b/debug/font-issues.zsh
@@ -222,13 +222,13 @@ 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')
+ declare -a konsole_instances; konsole_instances=( "${(@f)"$(qdbus | grep -F 'org.kde.konsole')"/ /}" )
for i in "${konsole_instances[@]}"; do
- IFS=$'\n' read -d "" -ra konsole_sessions < <(qdbus "$i" | grep -F '/Sessions/')
+ declare -a konsole_sessions; konsole_sessions=( "${(@f)"$(qdbus "$i" | grep -F '/Sessions/')"}" )
for session in "${konsole_sessions[@]}"; do
- if ((child == "$(qdbus "$i" "$session" processId)")); then
+ if ((child == $(qdbus "$i" "$session" processId))); then
profile="$(qdbus "$i" "$session" environment |\
awk -F '=' '/KONSOLE_PROFILE_NAME/ {print $2}')"
break