Skip to content

main: allow overriding the backend with the value of a ConVar#2147

Merged
misyltoad merged 1 commit into
ValveSoftware:masterfrom
oSoMoN:gamescope-backend-envvar
May 11, 2026
Merged

main: allow overriding the backend with the value of a ConVar#2147
misyltoad merged 1 commit into
ValveSoftware:masterfrom
oSoMoN:gamescope-backend-envvar

Conversation

@oSoMoN
Copy link
Copy Markdown

@oSoMoN oSoMoN commented Apr 24, 2026

No description provided.

@oSoMoN oSoMoN force-pushed the gamescope-backend-envvar branch from 80d4931 to e4ccc80 Compare April 25, 2026 20:41
@misyltoad
Copy link
Copy Markdown
Collaborator

id rather just factor this all out into cmdline + env vars automatically setting convars

@oSoMoN oSoMoN force-pushed the gamescope-backend-envvar branch from e4ccc80 to 9b1754b Compare May 4, 2026 10:55
@oSoMoN oSoMoN changed the title main: allow overriding the backend with the value of the GAMESCOPE_BACKEND environment variable main: allow overriding the backend with the value of a ConVar May 4, 2026
@oSoMoN
Copy link
Copy Markdown
Author

oSoMoN commented May 4, 2026

id rather just factor this all out into cmdline + env vars automatically setting convars

I reworked the patch to expose the backend as a ConVar, which is good enough for my needs, no need for an environment variable.

@misyltoad if I understand correctly your suggestion, any base ConVar could be set from the value of an environment variable suitably named? E.g. for all environment variables whose name starts with GAMESCOPE_CONVAR_, figure out the corresponding ConVar and set its value. Is that correct? If so I can look into implementing that in a separate PR.

@oSoMoN oSoMoN closed this May 4, 2026
@oSoMoN oSoMoN deleted the gamescope-backend-envvar branch May 4, 2026 15:20
@oSoMoN oSoMoN restored the gamescope-backend-envvar branch May 4, 2026 15:20
@oSoMoN oSoMoN reopened this May 4, 2026
@oSoMoN
Copy link
Copy Markdown
Author

oSoMoN commented May 7, 2026

@misyltoad if I understand correctly your suggestion, any base ConVar could be set from the value of an environment variable suitably named? E.g. for all environment variables whose name starts with GAMESCOPE_CONVAR_, figure out the corresponding ConVar and set its value. Is that correct? If so I can look into implementing that in a separate PR.

I gave a go at this in #2163. Feedback welcome!

@oSoMoN oSoMoN force-pushed the gamescope-backend-envvar branch from 9b1754b to 9f6f1db Compare May 7, 2026 16:20
@oSoMoN oSoMoN force-pushed the gamescope-backend-envvar branch from 9f6f1db to 2bb8649 Compare May 9, 2026 07:42
@misyltoad misyltoad merged commit 2bd27ed into ValveSoftware:master May 11, 2026
1 check passed
@oSoMoN oSoMoN deleted the gamescope-backend-envvar branch May 12, 2026 07:05
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.

2 participants