Skip to content

fix(linux): respect pre-existing STEAM_COMPAT_DATA_PATH and STEAM_COMPAT_CLIENT_INSTALL_PATH env vars#191

Merged
S1M0N38 merged 1 commit into
coder:mainfrom
ih8js-git:main
Jun 9, 2026
Merged

fix(linux): respect pre-existing STEAM_COMPAT_DATA_PATH and STEAM_COMPAT_CLIENT_INSTALL_PATH env vars#191
S1M0N38 merged 1 commit into
coder:mainfrom
ih8js-git:main

Conversation

@ih8js-git

Copy link
Copy Markdown
Contributor

Previously the Linux launcher unconditionally overwrote these env vars
with auto-detected Steam paths. Users with a custom Wine prefix
(e.g. Lutris) or non-standard Steam layout couldn't override them
via environment variables.

Now the launcher only sets these values if they aren't already set
in the environment, allowing users to specify a custom prefix or
Proton setup.

…PAT_CLIENT_INSTALL_PATH env vars

Previously the Linux launcher unconditionally overwrote these env vars
with auto-detected Steam paths. Users with a custom Wine prefix
(e.g. Lutris) or non-standard Steam layout couldn't override them
via environment variables.

Now the launcher only sets these values if they aren't already set
in the environment, allowing users to specify a custom prefix or
Proton setup.
Copilot AI review requested due to automatic review settings June 9, 2026 00:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates Linux platform environment setup to avoid overriding Steam compatibility environment variables when the user has already provided them.

Changes:

  • Preserve existing STEAM_COMPAT_CLIENT_INSTALL_PATH if set in the user environment.
  • Preserve existing STEAM_COMPAT_DATA_PATH if set in the user environment.
  • Adjust compatdata detection logic to run conditionally based on existing env vars.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 108 to 114
steam_root = _detect_steam_root()
if steam_root:
if steam_root and "STEAM_COMPAT_CLIENT_INSTALL_PATH" not in env:
env["STEAM_COMPAT_CLIENT_INSTALL_PATH"] = str(steam_root)
compat_data = _detect_compat_data_path(steam_root)
if "STEAM_COMPAT_DATA_PATH" not in env:
compat_data = _detect_compat_data_path(steam_root) if steam_root else None
if compat_data:
env["STEAM_COMPAT_DATA_PATH"] = str(compat_data)
@S1M0N38 S1M0N38 merged commit ef75d31 into coder:main Jun 9, 2026
4 checks passed
@S1M0N38

S1M0N38 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Thanks for this small fix. I'm testing the Linux platform on a clean Omarchy installation, and these minor fixes with a few lines are exactly what I'm looking for 👍.

@ih8js-git

Copy link
Copy Markdown
Contributor Author

yeah I had the bug on my own machine so I thought why not patch it lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants