Skip to content

Global environment variables don't work on Linux Mint Debian Edition (Cinnamon) #47

Description

@MohandL3G

ProtonShift version

0.9.7

Component

Environment Variables

Description

Global environment variables set via ProtonShift (e.g. MANGOHUD=1, STEAM_GAMEMODE=1) are written to ~/.config/environment.d/70-protonshift.conf, but games launched from Steam don't see them, so MangoHud and Gamemode don't activate.

With help of OpenCode it suggested to me that I use /etc/environment and without quotes "" so it'll be something like:

MANGOHUD=1
STEAM_GAMEMODE=1

Instead of the original ones which are:

MANGOHUD="1"
STEAM_GAMEMODE="1"

Steps to reproduce

  1. Enable MangoHud and Gamemode in ProtonShift's Environment page
  2. Log out and log back in
  3. Launch a game - MangoHud overlay does not appear
  4. Use /etc/environment instead
  5. Launch a game - MangoHud overlay appear

Expected behavior

Environment variables configured in ProtonShift should be available to all games after a login session restart.

Actual behavior

Global environment variables don't work, so setting something like MANGOHUD=1 doesn't work

Linux Distribution

LMDE 7 (gigi)

GPU

NVIDIA RTX 5060

Installation method

.deb package

Additional context

Can you please fix this and thank you, or at least give us an option to use system-wide setting like "/etc/environment" for example

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions