Steam-Headless / docker-steam-headless

A Headless Steam Docker image supporting NVIDIA GPU and accessible via Web UI
GNU General Public License v2.0
728 stars 79 forks source link

Install optional utilities #147

Open SuspiciousDuck opened 4 weeks ago

SuspiciousDuck commented 4 weeks ago

Is your feature request related to a problem?

Previously, I had launch options for some games that would require utilities that aren't included with Steam, like gamemoderun. As an example, these are my launch options for GMod, "gamescope -w 1920 -h 1080 --display-index 0 gamemoderun %command%" (going by memory). As you can see, gamescope and gamemoderun aren't actually included in this image. So I was wondering if there could be an environment option to allow the installation of these utilities for minimal hassle.

What is your feature request?

Adding extra environment variables to determine the installation of utilities like gamescope, gamemode, and mangohud. For example, in .env there'd be an option called MANGOHUD, with true or false values. The default would be false for all 3 utilities.

Are there any workarounds?

You could install them manually, but you'd have to reinstall them every time the container is started.

Additional Context

No response

alansari commented 4 weeks ago

You can create a script in the init.d folder called install_additional_stuff.sh Anything in the init.d folder, located in your home directory, will be invoked when the container starts. My recommendation is use apt-get install --needed so it doesn't attempt to install every boot, only when the container is recerated. edit: check out https://github.com/Steam-Headless/init.d for examples