mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-18 04:10:16 +00:00
4aa7fabcd5
chore: Additional bash script cleanup
18 lines
443 B
Bash
Executable File
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
|