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 89263ba6fd
commit 74e26d6f63
4 changed files with 35 additions and 4 deletions

View File

@@ -60,14 +60,18 @@ ninja uninstall
After installing `libgamemodeauto.so.0` simply preload it into the game:
```bash
LD_PRELOAD=/usr/\$LIB/libgamemodeauto.so.0 ./game
gamemoderun ./game
```
Or edit the steam launch options:
```bash
LD_PRELOAD=$LD_PRELOAD:/usr/\$LIB/libgamemodeauto.so.0 %command%
gamemoderun %command%
```
Please note the backslash here in `\$LIB` is required.
Note: for older versions of GameMode (1.2) use this string in place of `gamemoderun`:
```
LD_PRELOAD="$LD_PRELOAD:/usr/\$LIB/libgamemodeauto.so.0"
```
---
## Configuration