launcher strict sandbox fix on linux
i added a check for is found terminal is executable. game will launch with standart exec if found terminal is not exist or executable. ( fix for issue #775 )
This commit is contained in:
parent
28c5cb79d4
commit
ec9914efad
|
@ -80,6 +80,12 @@ else
|
|||
export LAUNCHTERM="$(basename "$(readlink -f $(COMMAND x-terminal-emulator))")"
|
||||
fi
|
||||
|
||||
|
||||
if [ ! -x $LAUNCHTERM ]; then
|
||||
echo "looks like found no terminal available for launch. maybe in sandbox or misconfigured system? fallbacking to execution without terminal"
|
||||
export TERM="xterm"
|
||||
exec $LAUNCHER $@
|
||||
else
|
||||
# run in selected terminal and account for quirks
|
||||
case $LAUNCHTERM in
|
||||
terminal|termite)
|
||||
|
@ -111,4 +117,5 @@ else
|
|||
exec $LAUNCHER --no-terminal "$@"
|
||||
fi
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue