diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 66c4378..8c6938e 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -512,7 +512,8 @@ case "${game}" in add_launcher "${installPath}/FS2_2.6_Linux/FS2.x86_64" "-ESpeakApplication=espeak-ng" ;; "Freedoom") - if [[ ! -d /usr/share/games/doom ]]; then + doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null)" + if [[ ${#doomPath} -lt 5 ]]; then dialog --backtitle "Linux Game Manager" \ --yesno "Do you want Linux Game Manager to install freedoom and gzdoom for you? If you want to do this manually, select no." -1 -1 --stdout || exit 0 if command -v yay &> /dev/null ; then