diff --git a/.launch/FreeDoom.game b/.launch/FreeDoom.game index 7828d63..d33fb27 100755 --- a/.launch/FreeDoom.game +++ b/.launch/FreeDoom.game @@ -43,8 +43,8 @@ export gamePath=~/.local/games/doom export doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null | head -1)" # Path to gzdoom or yadoom. -if [[ -x "yadoom" ]]; then - export gzdoom=$(readlink -f "yadoom") +if [[ -x "${BASH_SOURCE[0]%/*}/yadoom" ]]; then + export gzdoom=$"${BASH_SOURCE[0]%/*}/yadoom" else export gzdoom="$(command -v gzdoom)" fi