From 5a153d21da8af94bb25f64be286101c59a3f0d19 Mon Sep 17 00:00:00 2001 From: Botspot Date: Sun, 1 Nov 2020 09:34:28 -0600 Subject: [PATCH] compatible with mate-terminal --- gui | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gui b/gui index 1b6923c..9c3927f 100755 --- a/gui +++ b/gui @@ -27,26 +27,34 @@ fi install() { x-terminal-emulator --title="Installing $app" -e ' + bash -c '\'' + PATH="'"$PATH"'" if "'"${DIRECTORY}/manage"'" install "'"$app"'" ; then echo -e "\nClosing in 30 seconds." sleep 30 else echo -e "\nClose this window to exit." read enter #technically you could press Enter to exit. - fi' + fi + '\'' + ' sleep 1 while ps -C manage &>/dev/null;do sleep 0.1; done } uninstall() { x-terminal-emulator --title="Uninstalling $app" -e ' + bash -c '\'' + PATH="'"$PATH"'" if "'"${DIRECTORY}/manage"'" uninstall "'"$app"'" ; then echo -e "\nClosing in 30 seconds." sleep 30 else echo -e "\nClose this window to exit." read enter #technically you could press Enter to exit. - fi' + fi + '\'' + ' sleep 1 while ps -C manage &>/dev/null;do sleep 0.1; done }