forked from speedie/spmenu
Fix some terminal programs not spawning
This commit is contained in:
parent
af38dffdf0
commit
9e8e22872c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue