kra-mo / cartridges

A GTK4 + Libadwaita game launcher
GNU General Public License v3.0
628 stars 32 forks source link

Option to add environment variables to every game #262

Open Mammad900 opened 4 months ago

Mammad900 commented 4 months ago

Is your feature request related to a problem? Please describe. I need to add some environment variables to be able to launch my games using my dGPU:

env DRI_PRIME=1 __NV_SHOW_GRAPHICS_OSD=1 __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia <executable>

Right now I have to add these variables in every game's command, which is cumbersome. The long text also makes the executable field harder to use.

Describe the solution you'd like An option to set some environment variables in one place that applies to every game would be appreciated.

Describe alternatives you've considered This can be extended to adding any string to the start of the executables but I'm not sure if there's any use case for that.

Additional context Add any other context or screenshots about the feature request here.