gamemode
gamemode copied to clipboard
`bootstrap.sh` overrides environment variable of the pre-installed gamemode on Ubuntu 20.04 LTS
Describe the bug
I use Ubuntu 20.04 LTS with the pre-installed gamemode v1.5.1
listed here.
Installation of the gamemode v1.6-dev
overrides environment variable of the pre-installed version.
To Reproduce Steps used to reproduce the behavior:
- Install and uninstall
gamemode v1.6-dev
using the instruction available here on Ubuntu 20.04 LTS with the pre-installedgamemode v1.5.1
- View output of
dpkg -l | grep gamemode
:
$ dpkg -l | grep gamemode
ii gamemode 1.5.1-0ubuntu3.1 amd64 Optimise Linux system performance on demand
ii libgamemode0 1.5.1-0ubuntu3.1 amd64 Optimise Linux system performance on demand (libraries)
ii libgamemodeauto0 1.5.1-0ubuntu3.1 amd64 Automatically optimise Linux system performance on demand
- View output of
gamemoded --version
:
$ gamemoded --version
bash: /usr/bin/gamemoded: No such file or directory
Expected behavior
bootstrap.sh
script should:
- detect existing pre-installed gamemode
- suggest uninstallation of it to a user before running again
bootstrap.sh
script - display command to uninstall the pre-installed gamemode, e.g.
sudo apt remove --purge gamemode
- display information that the pre-installed version can be installed again using
sudo apt install gamemode
- be closed
System Info:
- OS and version: Ubuntu 20.04 LTS
- GameMode version: v1.6-dev
This is a funny one. I guess the easiest way would be to simply check if /usr/bin/gamemoded
exists, and ask the user if he wants to really install it (with the hint that it potentially breaks the installtion from the package manager).