Skip to content

Instantly share code, notes, and snippets.

@zwparchman
Last active April 9, 2016 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zwparchman/7f0a00a7dc69f2506db840d4a99a35e2 to your computer and use it in GitHub Desktop.
Save zwparchman/7f0a00a7dc69f2506db840d4a99a35e2 to your computer and use it in GitHub Desktop.
#!/bin/bash
die(){
echo "Aborting script"
exit 1
}
steam_game_prefix=""
if [ -d $HOME/.steam/steam/ ] ; then
steam_prefix="$HOME/.steam/steam"
elif [ -d $HOME/.local/share/Steam ] ; then
steam_prefix="$HOME/.local/share/Steam"
else
echo "Steam directory not found"
die
fi
steam_lib=""
where=$HOME/.steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu
[ -d $where ] && steam_lib=$steam_lib:$where
where=$HOME/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
[ -d $where ] && steam_lib=$steam_lib:$where
where=$HOME/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu
[ -d $where ] && steam_lib=$steam_lib:$where
where=$HOME/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
[ -d $where ] && steam_lib=$steam_lib:$where
if [ -z $steam_lib ] ; then
echo "Could not find library directories"
die
fi
export LD_LIBRARY_PATH=$steam_lib
cd "$steam_prefix/steamapps/common/star conflict"
echo "212070" > steam_appid.txt
./StarConflict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment