Bottles
Bottles copied to clipboard
[Bug]: Variables aren't set within Gamescope
Describe the bug
A problem with setting environment variables normally is gamescope crashes (on my computer). So the variable has to be set in a subshell:
gamescope -- sh -c "MESA_LOADER_DRIVER_OVERRIDE=zink game_exec"
Would be nice if the underlying problem could be fixed so that workarounds aren't necessary.
Originally posted by @xiota in https://github.com/bottlesdevs/Bottles/issues/1935#issuecomment-1214241711
To Reproduce
- Open a bottle
- Open Environment Variables
- Create a new variable
- Enable Gamescope
Package
Flatpak from Flathub
Distribution
Fedora Silverblue 36
Troubleshooting Logs
Version: 2022.8.14-brescia
Display:
X.org: true
X.org (port): :99.0
Wayland: true
Graphics:
vendors:
amd:
vendor: amd
envs:
DRI_PRIME: '1'
icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json
prime:
integrated: null
discrete: null
Kernel:
Type: Linux
Version: 5.18.16-200.fc36.x86_64
Distro:
Name: GNOME
Version: '"42 (Flatpak runtime)"'
Disk:
Total: 4136882176
Free: 4136718336
RAM:
MemTotal: 7.7GiB
MemAvailable: 3.4GiB
Bottles_envs: null
Display Protocol
Wayland
Display Backend used by Bottles
Wayland
Additional context
No response
Can this explain what happen to me in https://github.com/bottlesdevs/Bottles/issues/1562#issuecomment-1212600675 ?
Possibly, although I'm not sure.
Blocked by #1977
I think this is best done upstream. Plagman/gamescope#601