We have been following closely as developer Valve brings their popular game distribution software Steam and games like Left 4 Dead 2 and Portal 2 to Mac OS X. We got our first look at the beta for Steam on Mac OS X on Wednesday, but today it appears some clues were found within that very beta that points to a possible Linux compatible version of Steam in the near future.
Phoronix reported finding mentions of Linux within the launcher script of the Steam beta for Mac (pasted below). Since then Engadget has confirmed the code and Linux blogs are starting to go crazy with more clues and hints at a possible Linux version of Steam down the road. I expect you wont see a Linux version of Portal 2 when the title is released simultaneously on Mac and Windows via Steam, but nevertheless this is good news for Linux gamers who will more than likely get their hands on Valve games in the not too far away future.
#!/bin/bash # figure out the absolute path to the script being run a bit # non-obvious, the ${0%/*} pulls the path out of $0, cd's into the # specified directory, then uses $PWD to figure out where that # directory lives - and all this in a subshell, so we don't affect # $PWD STEAMROOT=$(cd "${0%/*}" && echo $PWD) #determine platform UNAME=`uname` if [ "$UNAME" == "Darwin" ]; then PLATFORM=osx32 # prepend our lib path to LD_LIBRARY_PATH export DYLD_LIBRARY_PATH="${STEAMROOT}"/${PLATFORM}:$DYLD_LIBRARY_PATH elif [ "$UNAME" == "Linux" ]; then PLATFORM=linux32 # prepend our lib path to LD_LIBRARY_PATH export LD_LIBRARY_PATH="${STEAMROOT}"/${PLATFORM}:$LD_LIBRARY_PATH fi if [ -z $STEAMEXE ]; then STEAMEXE=steam fi ulimit -n 2048 # and launch steam cd "$STEAMROOT" STATUS=42 while [ $STATUS -eq 42 ]; do ${DEBUGGER} "${STEAMROOT}"/${PLATFORM}/${STEAMEXE} $@ STATUS=$? # are we running osx? if [ $STATUS -eq 42 -a ${PLATFORM} == "osx32" -a -f Info.plist ]; then # are we running from in a bundle? exec open "${STEAMROOT}"/../.. fi done exit $STATUS
Similar Posts: