gamemode icon indicating copy to clipboard operation
gamemode copied to clipboard

`bootstrap.sh` overrides environment variable of the pre-installed gamemode on Ubuntu 20.04 LTS

Open jqadev opened this issue 4 years ago • 1 comments

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:

  1. Install and uninstall gamemode v1.6-dev using the instruction available here on Ubuntu 20.04 LTS with the pre-installed gamemode v1.5.1
  2. 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
  1. View output of gamemoded --version:
$ gamemoded --version
bash: /usr/bin/gamemoded: No such file or directory

Expected behavior bootstrap.sh script should:

  1. detect existing pre-installed gamemode
  2. suggest uninstallation of it to a user before running again bootstrap.sh script
  3. display command to uninstall the pre-installed gamemode, e.g. sudo apt remove --purge gamemode
  4. display information that the pre-installed version can be installed again using sudo apt install gamemode
  5. be closed

System Info:

  • OS and version: Ubuntu 20.04 LTS
  • GameMode version: v1.6-dev

jqadev avatar Jul 06 '20 21:07 jqadev

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).

stephanlachnit avatar Jul 08 '20 11:07 stephanlachnit