Update NonSteamLaunchers.sh

This commit is contained in:
Roy 2023-05-27 01:57:31 -07:00 committed by GitHub
parent 76f0e0792a
commit 540c720a84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2080,7 +2080,7 @@ steam_dir="$HOME/.local/share/Steam"
# Check if the config.vdf file exists
if [[ -f "$steam_dir/config/config.vdf" ]]; then
# Get the steamid of the currently logged in user
steamid=$(grep -oP 'SteamID"\s+"\K[0-9]+' "$steam_dir/config/config.vdf")
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
echo "steamid: $steamid"