Add files via upload

This commit is contained in:
moraroy 2023-05-08 04:08:52 -07:00 committed by GitHub
parent f7b8a4715e
commit 9829393231
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ chmod +x "$0"
set -x set -x
version=v2.1 version=v2.2
check_for_updates() { check_for_updates() {
# Set the URL to the GitHub API for the repository # Set the URL to the GitHub API for the repository
@ -825,6 +825,7 @@ cd $proton_dir
# Set the STEAM_RUNTIME environment variable # Set the STEAM_RUNTIME environment variable
export STEAM_RUNTIME="$HOME/.steam/root/ubuntu12_32/steam-runtime/run.sh" export STEAM_RUNTIME="$HOME/.steam/root/ubuntu12_32/steam-runtime/run.sh"
# Set the STEAM_COMPAT_CLIENT_INSTALL_PATH environment variable # Set the STEAM_COMPAT_CLIENT_INSTALL_PATH environment variable
export STEAM_COMPAT_CLIENT_INSTALL_PATH="~/.local/share/Steam" export STEAM_COMPAT_CLIENT_INSTALL_PATH="~/.local/share/Steam"
@ -1649,8 +1650,8 @@ shortcuts_vdf_paths=$(find ~/.steam/root/userdata -type d -regextype posix-exten
# Set the current date # Set the current date
current_date=$(date +%s) current_date=$(date +%s)
# Set the maximum age of the shortcuts.vdf file in seconds (e.g. 1 month) # Set the maximum age of the shortcuts.vdf file in seconds (e.g. 1 week)
max_age=$((30*24*60*60)) max_age=$((7*24*60*60))
# Initialize the shortcuts_vdf_path variable # Initialize the shortcuts_vdf_path variable
shortcuts_vdf_path="" shortcuts_vdf_path=""
@ -1686,7 +1687,11 @@ else
touch "$config_dir/shortcuts.vdf" touch "$config_dir/shortcuts.vdf"
shortcuts_vdf_path="$config_dir/shortcuts.vdf" shortcuts_vdf_path="$config_dir/shortcuts.vdf"
else else
echo "Error: config_dir is empty" # Create a new config directory and a new shortcuts.vdf file at the expected location
mkdir ~/.steam/root/userdata/*/config/
touch ~/.steam/root/userdata/*/config/shortcuts.vdf
config_dir=$(find ~/.steam/root/userdata/*/config/)
shortcuts_vdf_path="$config_dir/shortcuts.vdf"
fi fi
fi fi
@ -1700,6 +1705,8 @@ fi
# Run the Python script to create a new entry for a Steam shortcut # Run the Python script to create a new entry for a Steam shortcut
python -c " python -c "
import vdf import vdf