Fix some terminal programs not spawning
This commit is contained in:
parent
af38dffdf0
commit
9e8e22872c
|
@ -204,10 +204,10 @@ exec_program() {
|
||||||
done
|
done
|
||||||
|
|
||||||
# finally run the program
|
# finally run the program
|
||||||
if [ -n "$exec" ] && [ "$term" = "false" ]; then
|
if [ -n "$exec" ] && [ "$term" != "true" ]; then
|
||||||
${SHELL:-/bin/sh} -c "$exec" &
|
${SHELL:-/bin/sh} -c "$exec"
|
||||||
elif [ -n "$exec" ] && [ "$term" = "true" ]; then
|
elif [ -n "$exec" ] && [ "$term" = "true" ]; then
|
||||||
${TERMINAL} -e "$exec" &
|
${SHELL:-/bin/sh} -c "${TERMINAL} $exec"
|
||||||
else
|
else
|
||||||
printf "No executable found. Try clearing cache." >> "$LOGFILE"
|
printf "No executable found. Try clearing cache." >> "$LOGFILE"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue