Skip to content

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

Open
oSoMoN wants to merge 1 commit intoValveSoftware:masterfrom
oSoMoN:gamescope-backend-envvar
Open

main: allow overriding the backend with the value of a ConVar#2147
oSoMoN wants to merge 1 commit intoValveSoftware: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
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