bazzite/system_files/desktop/silverblue/usr/bin/xdg-terminal-exec
Kyle Gospodnetich 4aa7fabcd5 fix(gnome): Fix issue with xdg-terminal-exec when used with long commands
chore: Additional bash script cleanup
2023-12-23 09:56:09 -08:00

18 lines
443 B
Bash
Executable File

#!/usr/bin/bash
if command -v /usr/bin/prompt > /dev/null; then
if [[ -z "$@" ]]; then
/usr/bin/prompt --new-window
else
/usr/bin/prompt -- "$@"
fi
elif grep '^org\.gnome\.Prompt$' <<< $(/usr/bin/flatpak list --app --columns=application); then
if [[ -z "$@" ]]; then
/usr/bin/flatpak run org.gnome.Prompt --new-window
else
/usr/bin/flatpak run org.gnome.Prompt -- "$@"
fi
else
/usr/bin/gnome-terminal -- "$@"
fi