mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 08:09:18 +01:00
Update NonSteamLaunchers.sh
~reverted back
This commit is contained in:
parent
faf6ed65e3
commit
d80661d3d1
@ -2559,11 +2559,9 @@ if [[ -f "${logged_in_home}/.steam/root/config/loginusers.vdf" ]]; then
|
||||
# Extract the block of text for the most recent user
|
||||
most_recent_user=$(sed -n '/"users"/,/"MostRecent" "1"/p' "${logged_in_home}/.steam/root/config/loginusers.vdf")
|
||||
|
||||
# Extract the SteamIDs from the block of text for the most recent user
|
||||
steamids=$(echo "$most_recent_user" | grep -o '[0-9]\{17\}')
|
||||
# Extract the SteamID from the block of text for the most recent user
|
||||
steamid=$(echo "$most_recent_user" | grep -o '[0-9]\{17\}')
|
||||
|
||||
# Loop over each SteamID
|
||||
for steamid in $steamids; do
|
||||
# Convert steamid to steamid3
|
||||
steamid3=$((steamid - 76561197960265728))
|
||||
|
||||
@ -2575,11 +2573,10 @@ if [[ -f "${logged_in_home}/.steam/root/config/loginusers.vdf" ]]; then
|
||||
|
||||
# Check if userdata_folder exists
|
||||
if [[ -d "$userdata_folder" ]]; then
|
||||
echo "Found userdata folder for user with SteamID $steamid: $userdata_folder"
|
||||
echo "Found userdata folder for current user: $userdata_folder"
|
||||
else
|
||||
echo "Could not find userdata folder for user with SteamID $steamid"
|
||||
echo "Could not find userdata folder for current user"
|
||||
fi
|
||||
done
|
||||
else
|
||||
echo "Could not find loginusers.vdf file"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user