bottlesdevs / Bottles

Run Windows software and games on Linux
https://usebottles.com
GNU General Public License v3.0
6.43k stars 270 forks source link

[Bug]: Variables aren't set within Gamescope #1937

Open TheEvilSkeleton opened 2 years ago

TheEvilSkeleton commented 2 years ago

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

  1. Open a bottle
  2. Open Environment Variables
  3. Create a new variable
  4. 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

ghtesting2020 commented 2 years ago

Can this explain what happen to me in https://github.com/bottlesdevs/Bottles/issues/1562#issuecomment-1212600675 ?

TheEvilSkeleton commented 2 years ago

Possibly, although I'm not sure.

mirkobrombin commented 2 years ago

Blocked by #1977

xiota commented 2 years ago

I think this is best done upstream. Plagman/gamescope#601