Add "gamemoderun", a wrapper bash script like "primusrun"

This should remove a point of failure currently where users fail to set LD_PRELOAD correctly, or the path is wrong somehow.

	FWIW: The old method still works, and I've noted that in the README.
This commit is contained in:
Marc Di Luzio
2019-02-05 21:13:16 +00:00
parent ad4fb59962
commit 372a640d39
4 changed files with 35 additions and 4 deletions

View File

@@ -38,13 +38,19 @@ Print the version
\fBlibgamemodeauto.so.0\fR can be pre-loaded into any program to request \fBgamemoded\fR begin or end the mode, like so:
.RS 4
LD_PRELOAD=/usr/\e$LIB/libgamemodeauto.so.0 \./game
gamemoderun \./game
.RE
Or by setting the steam launch options for a game:
.RS 4
LD_PRELOAD=$LD_PRELOAD:/usr/\e$LIB/libgamemodeauto.so.0 %command%
gamemoderun %command%
.RE
The library can be manually preloaded if needed:
.RS 4
LD_PRELOAD=$LD_PRELOAD:/usr/\e$LIB/libgamemodeauto.so.0 ./game
.RE
The \fBgamemode_client.h\fR header can be used by developers to build the requests into a program: