Browse Source

Follow up improvements to documentation for GAMEMODERUNEXEC

Alex Smith 5 years ago
parent
commit
ffea085396
2 changed files with 7 additions and 4 deletions
  1. 4 3
      README.md
  2. 3 1
      data/gamemoded.8.in

+ 4 - 3
README.md

@@ -50,9 +50,10 @@ Config files are loaded and merged from the following directories, in order:
 ---
 ## Note for Hybrid GPU users
 
-It's not possible to integrate commands like optirun automatically inside GameMode, since GameMode only starts if the game is already started.
-However it is possible to use a hybrid GPU wrapper like optirun by starting the game with gamemoderun.
-You can do this by setting the environment variable `GAMEMODERUNEXEC` to your wrapper's launch command, so for example `GAMEMODERUNEXEC=optirun` or `GAMEMODERUN="env DRI_PRIME=1"`.
+It's not possible to integrate commands like optirun automatically inside GameMode, since the GameMode request is made once the game has already started. However it is possible to use a hybrid GPU wrapper like optirun by starting the game with `gamemoderun`.
+
+You can do this by setting the environment variable `GAMEMODERUNEXEC` to your wrapper's launch command, so for example `GAMEMODERUNEXEC=optirun` or `GAMEMODERUNEXEC="env DRI_PRIME=1"`. This environment variable can be set globally, so that the same prefix command does not have to be duplicated everywhere you want to use `gamemoderun`.
+
 GameMode will not be injected to the wrapper.
 
 ---

+ 3 - 1
data/gamemoded.8.in

@@ -44,7 +44,7 @@ Print the version
 gamemoderun \./game
 .RE
 
-Or by setting the steam launch options for a game:
+Or by setting the Steam launch options for a game:
 
 .RS 4
 gamemoderun %command%
@@ -62,6 +62,8 @@ It is possible to set additional start commands to gamemoderun by setting the en
 GAMEMODERUNEXEC="command"
 .RE
 
+When this is set, gamemoderun will execute the command given by that environment variable, and the command line passed to gamemoderun will be passed as arguments to that command. GameMode will not be applied to the wrapper command, just the game itself.
+
 The \fBgamemode_client.h\fR header can be used by developers to build the requests into a program:
 
 .RS 4