From 9e8e22872c44d9fa510a60864c28f354fd4b7e4f Mon Sep 17 00:00:00 2001 From: speedie Date: Wed, 26 Jul 2023 16:34:28 +0200 Subject: [PATCH] Fix some terminal programs not spawning --- scripts/spmenu_desktop | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/spmenu_desktop b/scripts/spmenu_desktop index eddfc18..4c9e186 100755 --- a/scripts/spmenu_desktop +++ b/scripts/spmenu_desktop @@ -204,10 +204,10 @@ exec_program() { done # finally run the program - if [ -n "$exec" ] && [ "$term" = "false" ]; then - ${SHELL:-/bin/sh} -c "$exec" & + if [ -n "$exec" ] && [ "$term" != "true" ]; then + ${SHELL:-/bin/sh} -c "$exec" elif [ -n "$exec" ] && [ "$term" = "true" ]; then - ${TERMINAL} -e "$exec" & + ${SHELL:-/bin/sh} -c "${TERMINAL} $exec" else printf "No executable found. Try clearing cache." >> "$LOGFILE" fi