I keep forgetting exactly how to do this without searching for it, so what better than to post it here for myself and others?

I enjoy installing games that are either not in the official Ubuntu repositories or are newer versions than what is available. After downloading and extracting, I move them to /opt and add a launcher to the Applications > Games menu. Some of the games need to be launched from their own directory which makes simply pointing the launcher at the executable impossible.

Instead, I actually set the launcher up to run a shell instance and pass it the required commands in order to run the game. For instance, Nexuiz doesn’t require this workaround as it has that as an option built in to it. I simply set the launcher’s command up as:

/opt/Nexuiz/nexuiz-linux-x86_84-glx -basedir /opt/Nexuiz

However, for games such as Sauerbraten and Warsow, I set the launcher’s command as:

sh -c “cd /opt/sauerbraten/ && ./sauerbraten_unix”

…and…

sh -c “cd /opt/warsow && ./warsow”

Now I can easily get back to my fragging.

  • Share/Bookmark