Skip to content

Commit

Permalink
fix: Correct issue with command check in xdg-terminal-exec
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Dec 23, 2023
1 parent 0531ff9 commit e48a816
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usr/bin/xdg-terminal-exec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env bash
#!/usr/bin/bash

if command -v /usr/bin/prompt > /dev/null; then
if test -z "$@"; 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 test -z "$@"; then
if [[ -z "$@" ]]; then
/usr/bin/flatpak run org.gnome.Prompt --new-window
else
/usr/bin/flatpak run org.gnome.Prompt -- "$@"
Expand Down

0 comments on commit e48a816

Please sign in to comment.