Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

[Bug]: Variables aren't set within Gamescope

Open TheEvilSkeleton opened this issue 1 year ago • 4 comments

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

TheEvilSkeleton avatar Aug 13 '22 23:08 TheEvilSkeleton

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

ghtesting2020 avatar Aug 14 '22 00:08 ghtesting2020

Possibly, although I'm not sure.

TheEvilSkeleton avatar Aug 14 '22 13:08 TheEvilSkeleton

Blocked by #1977

mirkobrombin avatar Aug 24 '22 19:08 mirkobrombin

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

xiota avatar Aug 25 '22 18:08 xiota