mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-13 00:19:23 +02:00
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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user