check if flatpak is installed

This commit is contained in:
Alex Smith 2025-01-18 03:44:54 +05:00
parent 4c5ce94067
commit 4c0904a5f8

@ -536,7 +536,7 @@ rungame() {
fi fi
else else
export LD_PRELOAD= export LD_PRELOAD=
if [[ "${FLATPAK_IN_USE:-0}" == 1 ]]; then if [[ "${FLATPAK_IN_USE:-0}" == 1 ]] && command -v "flatpak" &>/dev/null; then
flatpak run ru.linux_gaming.PortProton "${portwine_exe}" flatpak run ru.linux_gaming.PortProton "${portwine_exe}"
else else
"${PORT_SCRIPTS_PATH}/start.sh" "${portwine_exe}" "${PORT_SCRIPTS_PATH}/start.sh" "${portwine_exe}"