Commit 8d63f8d6 authored by Mikhail Tergoev's avatar Mikhail Tergoev

force restart PP if START_FROM_STEAM = 1

parent 081d2b9b
......@@ -315,7 +315,9 @@ fi
if ! check_flatpak ; then
if [[ -f "${PW_TMPFS_PATH}/portproton.lock" ]] ; then
print_warning "Found lock file: ${PW_TMPFS_PATH}/portproton.lock"
yad_question "${translations[A running PortProton session was detected.\\nDo you want to end the previous session?]}" || exit 0
if [[ $START_FROM_STEAM != "1" ]]
then yad_question "${translations[A running PortProton session was detected.\\nDo you want to end the previous session?]}" || exit 0
fi
fi
touch "${PW_TMPFS_PATH}/portproton.lock"
rm_lock_file () {
......@@ -417,7 +419,9 @@ EOF
fi
done < "$PORT_WINE_PATH/data/prefixes/$PW_PREFIX_NAME/.create_shortcut"
fi
yad_info "${translations[Unpack is DONE for prefix:]} <b>\"${PW_PREFIX_NAME}\"</b>."
if [[ $START_FROM_STEAM != "1" ]]
then yad_info "${translations[Unpack is DONE for prefix:]} <b>\"${PW_PREFIX_NAME}\"</b>."
fi
exit 0
fi
fi
......
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