Add files via upload

This commit is contained in:
moraroy 2023-05-08 01:11:53 -07:00 committed by GitHub
parent 19825efb46
commit 02e24ddf49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1639,13 +1639,16 @@ python setup.py install --prefix=~/Downloads/NonSteamLaunchersInstallation
# Find the shortcuts.vdf file # Find the shortcuts.vdf file
shortcuts_vdf_path=$(find ~/.steam/root/userdata -type d -regextype posix-extended -regex '.*/[0-9]{9}/config' -not -path "*/0/*" -not -path "*/anonymous/*" -exec find {} -name shortcuts.vdf \;) shortcuts_vdf_path=$(find ~/.steam/root/userdata -type d -regextype posix-extended -regex '.*/[0-9]{9}/config' -not -path "*/0/*" -not -path "*/anonymous/*" -exec find {} -name shortcuts.vdf \;)
# Find the shortcuts.vdf file
shortcuts_vdf_path=$(find ~/.steam/root/userdata -type d -regextype posix-extended -regex '.*/[0-9]{9,10}/config' -not -path "*/0/*" -not -path "*/anonymous/*" -exec find {} -name shortcuts.vdf \;)
# Check if shortcuts_vdf_path is not empty # Check if shortcuts_vdf_path is not empty
if [[ -n "$shortcuts_vdf_path" ]]; then if [[ -n "$shortcuts_vdf_path" ]]; then
# Create a backup of the shortcuts.vdf file # Create a backup of the shortcuts.vdf file
cp "$shortcuts_vdf_path" "$shortcuts_vdf_path.bak" cp "$shortcuts_vdf_path" "$shortcuts_vdf_path.bak"
else else
# Find the config directory # Find the config directory
config_dir=$(find ~/.steam/root/userdata -type d -regextype posix-extended -regex '.*/[0-9]{9}/config' -not -path "*/0/*" -not -path "*/anonymous/*") config_dir=$(find ~/.steam/root/userdata -type d -regextype posix-extended -regex '.*/[0-9]{9,10}/config' -not -path "*/0/*" -not -path "*/anonymous/*")
# Check if config_dir is not empty # Check if config_dir is not empty
if [[ -n "$config_dir" ]]; then if [[ -n "$config_dir" ]]; then
@ -1666,6 +1669,7 @@ 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