mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-04-16 17:42:57 +00:00
fix: Always launch prompt in a new window when xdg-terminal-exec is called with no input
This commit is contained in:
parent
486fd46684
commit
d8cc1ebe46
@ -1,9 +1,17 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if command -v /usr/bin/prompt > /dev/null; then
|
if command -v /usr/bin/prompt > /dev/null; then
|
||||||
/usr/bin/prompt -- "$@"
|
if test -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
|
elif grep '^org\.gnome\.Prompt$' <<< $(/usr/bin/flatpak list --app --columns=application); then
|
||||||
/usr/bin/flatpak run org.gnome.Prompt -- "$@"
|
if test -z "$@"; then
|
||||||
|
/usr/bin/flatpak run org.gnome.Prompt --new-window
|
||||||
|
else
|
||||||
|
/usr/bin/flatpak run org.gnome.Prompt -- "$@"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
/usr/bin/gnome-terminal -- "$@"
|
/usr/bin/gnome-terminal -- "$@"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user