Last active
April 9, 2016 18:53
-
-
Save zwparchman/7f0a00a7dc69f2506db840d4a99a35e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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