mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 08:09:18 +01:00
Add files via upload
This commit is contained in:
parent
5f8a3e75b7
commit
f31dd626da
@ -1054,21 +1054,23 @@ function install_gog {
|
|||||||
echo "45"
|
echo "45"
|
||||||
echo "# Downloading & Installing Gog Galaxy...Please wait..."
|
echo "# Downloading & Installing Gog Galaxy...Please wait..."
|
||||||
|
|
||||||
# Define the base directory path
|
# Cancel & Exit the GOG Galaxy Setup Wizard
|
||||||
base_dir_path="${logged_in_home}/.local/share/Steam/steamapps/compatdata/$appid/pfx/drive_c/users/steamuser/Temp"
|
end=$((SECONDS+60)) # Timeout after 60 seconds
|
||||||
|
while true; do
|
||||||
# Wait for the GalaxyInstaller_XXXXX directory to be created by the Galaxy process
|
if pgrep -f "GalaxySetup.tmp" > /dev/null; then
|
||||||
galaxy_installer_folder=""
|
pkill -f "GalaxySetup.tmp"
|
||||||
while [ -z "$galaxy_installer_folder" ]; do
|
break
|
||||||
galaxy_installer_folder=$(find "$base_dir_path" -maxdepth 1 -type d -name "GalaxyInstaller_*" | head -n1)
|
fi
|
||||||
|
if [ $SECONDS -gt $end ]; then
|
||||||
|
echo "Timeout while trying to kill GalaxySetup.tmp"
|
||||||
|
break
|
||||||
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
# Now that the directory exists, terminate the Galaxy process
|
|
||||||
terminate_processes "GalaxySetup.tmp"
|
|
||||||
|
|
||||||
# Navigate to %LocalAppData%\Temp
|
# Navigate to %LocalAppData%\Temp
|
||||||
cd "$base_dir_path"
|
cd "${logged_in_home}/.local/share/Steam/steamapps/compatdata/$appid/pfx/drive_c/users/steamuser/Temp"
|
||||||
|
|
||||||
# Find the GalaxyInstaller_XXXXX folder and copy it to C:\Downloads
|
# Find the GalaxyInstaller_XXXXX folder and copy it to C:\Downloads
|
||||||
galaxy_installer_folder=$(find . -maxdepth 1 -type d -name "GalaxyInstaller_*" | head -n1)
|
galaxy_installer_folder=$(find . -maxdepth 1 -type d -name "GalaxyInstaller_*" | head -n1)
|
||||||
|
Loading…
Reference in New Issue
Block a user