The Wolfe Pack

For Linux people who want to play games on Steam💩 but can't because it's completely inaccessible, this script might help. I named it spos.sh. If there's enough interest in this I could put it somewhere more permanent.

#!/usr/bin/env bash

# Steam username
userName=""
# Steam password
password=""


if [[ ${#userName} -lt 2 ]] || [[ "${#password}" -lt 2 ]]; then
    echo "Please edit $0 and set userName and password."
    exit 0
fi

export DIALOGOPTS='--no-lines --visit-items'

startPosition="$(grep -n '^exit 0$' "${0}")"
startPosition="${startPosition%%:*}"
((startPosition++))
mapfile -t data < <(tail -n +${startPosition} "$0" | grep -v "^#" | grep -v "^$")
if [[ "${#data[@]}" -lt 1 ]]; then
    echo "No games added yet."
fi
declare -a menuList
for i in "${data[@]}" ; do
    menuList+=(
        "${i#*|}"
        "${i%|*}"
    )
done
game="$(dialog --backtitle "Steaming Pile of Shit Launcher" \
    --clear \
    --ok-label "Launch" \
    --no-tags \
    --menu "Please select a game to launch" 0 0 0 "${menuList[@]}" --stdout)"
[[ $? -ne 0 ]] && exit 0
steam -applaunch "${game}" -silent -login "${userName}" "${password}" -rememberpassword "$@"

exit 0
# Examples of how to add a game.
#Conjury|2684520
#Mortal Kombat 1|1971870
replies
1
announces
2
likes
2

@storm Linux version of steam is still crap? I know the Windows one you can log into easily now without issue and such, at one point that was not a thing.

@blindbat84 yeah, completely sucks. That is why I always refer to it as Steam💩 the worst part is, they fixed it for about a month in the beta, then broke it again. So, they know it can be fixed, they knnow it needs to be fixed, they even fixed it, but they don't care enough to keep it fixed.

@storm Yeesh that sucks.