chore(kde): Simplify dolphin shim since no other changes will be needed

This commit is contained in:
Kyle Gospodnetich 2024-01-10 08:43:40 -08:00
parent 9529cf223f
commit c356b0dca8

View File

@ -4,9 +4,8 @@
args=("${@//-e/--}")
# Dolphin integration requires --new-window to function properly
unshift() { local -n ary=$1; shift; ary=("$@" "${ary[@]}"); }
if [[ ! "${args[@]}" =~ "--" && ! "${args[@]}" =~ "-h" && ! "${args[@]}" =~ "-x" ]]; then
unshift args "--new-window"
/usr/bin/prompt --new-window "${args[@]}"
else
/usr/bin/prompt "${args[@]}"
fi
/usr/bin/prompt "${args[@]}"