mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-01 10:56:45 +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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user