mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-18 04:10:16 +00:00
13 lines
412 B
Plaintext
13 lines
412 B
Plaintext
|
#!/usr/bin/bash
|
||
|
# Shim to handle KDE only supporting -e
|
||
|
# https://bugs.kde.org/show_bug.cgi?id=459616
|
||
|
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"
|
||
|
fi
|
||
|
|
||
|
/usr/bin/prompt "${args[@]}"
|