mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
Silent update to fix shortcuts
~ changed some lines to install setup tools in the right path
This commit is contained in:
parent
5aaefb868b
commit
8488f1fe84
@ -1283,50 +1283,34 @@ tar -xvf "$download_dir"/setuptools-*.tar.gz -C "$download_dir"
|
||||
# Change to the extracted directory
|
||||
cd "$download_dir"/setuptools-*/
|
||||
|
||||
|
||||
|
||||
|
||||
# Install setuptools
|
||||
python setup.py install --prefix="$download_dir"
|
||||
|
||||
|
||||
|
||||
export PYTHONPATH="/usr/lib/python3.10/site-packages:$PYTHONPATH"
|
||||
|
||||
|
||||
# Change to the extracted directory
|
||||
cd "$download_dir"/vdf-*/
|
||||
|
||||
|
||||
# Set the PYTHONPATH environment variable
|
||||
export PYTHONPATH="$download_dir/lib/python3.10/site-packages:$PYTHONPATH"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Install the vdf library
|
||||
python setup.py install --prefix=~/Downloads/NonSteamLaunchersInstallation
|
||||
|
||||
|
||||
# Set the PYTHONPATH environment variable
|
||||
export PYTHONPATH="$download_dir/lib/python3.10/site-packages:$PYTHONPATH"
|
||||
|
||||
|
||||
|
||||
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 \;)
|
||||
|
||||
# Check if shortcuts_vdf_path is not empty
|
||||
if [[ -n "$shortcuts_vdf_path" ]]; then
|
||||
# Create a backup of the shortcuts.vdf file
|
||||
cp "$shortcuts_vdf_path" "$shortcuts_vdf_path.bak"
|
||||
else
|
||||
echo "Error: shortcuts_vdf_path is empty"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Create a backup of the shortcuts.vdf file
|
||||
cp "$shortcuts_vdf_path" "$shortcuts_vdf_path.bak"
|
||||
|
||||
|
||||
|
||||
|
||||
# Run the Python script to create a new entry for a Steam shortcut
|
||||
python -c "
|
||||
import vdf
|
||||
|
Loading…
Reference in New Issue
Block a user