From cd0fc892aa8262745bb90769951010111663eacd Mon Sep 17 00:00:00 2001 From: eshanized Date: Tue, 16 Apr 2024 18:22:44 +0530 Subject: [PATCH] =?UTF-8?q?=E2=8F=B3=20@eshanized=20updated=20the=20reposi?= =?UTF-8?q?tory=20=F0=9F=8E=89=20!!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/bin/exec-terminal | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/usr/bin/exec-terminal b/usr/bin/exec-terminal index 55f3ecc..6d1e5aa 100644 --- a/usr/bin/exec-terminal +++ b/usr/bin/exec-terminal @@ -61,3 +61,12 @@ MATE) terminal=mate-terminal ;; esac + +if [ -z "$terminal" ] || ! command -v "$terminal" &>/dev/null; then + for i in ${term_order[@]}; do + if command -v "$i" &>/dev/null; then + terminal="$i" + break + fi + done +fi