Commit 9ad01bfe authored by Michael Straube's avatar Michael Straube

Invert test logic

parent 7ed49d57
...@@ -3112,14 +3112,14 @@ END ...@@ -3112,14 +3112,14 @@ END
if ((child == "$(qdbus "$i" "$session" processId)")); then if ((child == "$(qdbus "$i" "$session" processId)")); then
profile="$(qdbus "$i" "$session" environment |\ profile="$(qdbus "$i" "$session" environment |\
awk -F '=' '/KONSOLE_PROFILE_NAME/ {print $2}')" awk -F '=' '/KONSOLE_PROFILE_NAME/ {print $2}')"
[[ ! $profile ]] && profile="$(qdbus "$i" "$session" profile)" [[ $profile ]] || profile="$(qdbus "$i" "$session" profile)"
break break
fi fi
done done
[[ $profile ]] && break [[ $profile ]] && break
done done
[[ ! $profile ]] && return [[ $profile ]] || return
# We could have two profile files for the same profile name, take first match # We could have two profile files for the same profile name, take first match
profile_filename="$(grep -l "Name=${profile}" "$HOME"/.local/share/konsole/*.profile)" profile_filename="$(grep -l "Name=${profile}" "$HOME"/.local/share/konsole/*.profile)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment