mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 15:21:52 +01:00
steam_dir variable formatting
Curly brackets are delimiters when joined with string/filepath
This commit is contained in:
parent
6452d8ab07
commit
9ed149e86b
@ -2650,9 +2650,9 @@ export PYTHONPATH="${download_dir}/lib/python${python_version}/site-packages/:$P
|
|||||||
steam_dir="${logged_in_home}/.local/share/Steam"
|
steam_dir="${logged_in_home}/.local/share/Steam"
|
||||||
|
|
||||||
# Check if the config.vdf file exists
|
# Check if the config.vdf file exists
|
||||||
if [[ -f "$steam_dir/config/config.vdf" ]]; then
|
if [[ -f "${steam_dir}/config/config.vdf" ]]; then
|
||||||
# Get the steamid of the currently logged in user
|
# Get the steamid of the currently logged in user
|
||||||
steamid=$(grep -oP 'SteamID"\s+"\K[0-9]+' "$steam_dir/config/config.vdf" | head -n 1)
|
steamid=$(grep -oP 'SteamID"\s+"\K[0-9]+' "${steam_dir}/config/config.vdf" | head -n 1)
|
||||||
|
|
||||||
# Print out the value of steamid for debugging purposes
|
# Print out the value of steamid for debugging purposes
|
||||||
echo "steamid: $steamid"
|
echo "steamid: $steamid"
|
||||||
@ -2742,12 +2742,12 @@ while steam_pid > /dev/null; do sleep 5; done
|
|||||||
steam_dir="${logged_in_home}/.steam/root"
|
steam_dir="${logged_in_home}/.steam/root"
|
||||||
|
|
||||||
# Set the path to the config.vdf file
|
# Set the path to the config.vdf file
|
||||||
config_vdf_path="$steam_dir/config/config.vdf"
|
config_vdf_path="${steam_dir}/config/config.vdf"
|
||||||
|
|
||||||
# Check if the config.vdf file exists
|
# Check if the config.vdf file exists
|
||||||
if [ -f "$config_vdf_path" ]; then
|
if [ -f "$config_vdf_path" ]; then
|
||||||
# Create a backup of the config.vdf file
|
# Create a backup of the config.vdf file
|
||||||
backup_path="$steam_dir/config/config.vdf.bak"
|
backup_path="${steam_dir}/config/config.vdf.bak"
|
||||||
cp "$config_vdf_path" "$backup_path"
|
cp "$config_vdf_path" "$backup_path"
|
||||||
|
|
||||||
# Set the name of the compatibility tool to use
|
# Set the name of the compatibility tool to use
|
||||||
|
Loading…
Reference in New Issue
Block a user