Commit 4c0904a5 authored by Alex Smith's avatar Alex Smith

check if flatpak is installed

parent 4c5ce940
...@@ -536,7 +536,7 @@ rungame() { ...@@ -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}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment