From b7eb8568ef69a9a2ee13c51593a2ed011fc35091 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 17 May 2012 17:40:28 +0400 Subject: [PATCH] Run several 3D applications on Optimus if present. --- Applications/20~Games/20~Action_Games/~nexuiz~Nexuiz | 4 +++- .../20~Action_Games/~sauerbraten_client-bin~Sauerbraten | 4 +++- Applications/20~Games/Arcade_Games/~etracer~TuxRacer | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Applications/20~Games/20~Action_Games/~nexuiz~Nexuiz b/Applications/20~Games/20~Action_Games/~nexuiz~Nexuiz index 208778f..c6aefc1 100755 --- a/Applications/20~Games/20~Action_Games/~nexuiz~Nexuiz +++ b/Applications/20~Games/20~Action_Games/~nexuiz~Nexuiz @@ -1,4 +1,6 @@ #!/bin/sh -exec nvrun nexuiz $@ +which nvrun && exec nvrun nexuiz $@ +which optirun && exec optirun nexuiz $@ +exec nexuiz $@ diff --git a/Applications/20~Games/20~Action_Games/~sauerbraten_client-bin~Sauerbraten b/Applications/20~Games/20~Action_Games/~sauerbraten_client-bin~Sauerbraten index 0da9e25..dc97224 100755 --- a/Applications/20~Games/20~Action_Games/~sauerbraten_client-bin~Sauerbraten +++ b/Applications/20~Games/20~Action_Games/~sauerbraten_client-bin~Sauerbraten @@ -1,3 +1,5 @@ #!/bin/sh -exec nvrun sauerbraten_client-bin $@ +which nvrun exec nvrun sauerbraten_client-bin $@ +which optirun exec optirun sauerbraten_client-bin $@ +exec sauerbraten_client-bin $@ diff --git a/Applications/20~Games/Arcade_Games/~etracer~TuxRacer b/Applications/20~Games/Arcade_Games/~etracer~TuxRacer index 99ab93c..1bc92f2 100755 --- a/Applications/20~Games/Arcade_Games/~etracer~TuxRacer +++ b/Applications/20~Games/Arcade_Games/~etracer~TuxRacer @@ -1,3 +1,5 @@ #!/bin/sh -exec nvrun etracer $@ +which nvrun exec nvrun etracer $@ +which optirun exec optirun etracer $@ +exec etracer $@