Skip to content

add condition to isDeckGameMode to fix nested desktop usage#1233

Open
sugoidogo wants to merge 1 commit intoVencord:mainfrom
sugoidogo:main
Open

add condition to isDeckGameMode to fix nested desktop usage#1233
sugoidogo wants to merge 1 commit intoVencord:mainfrom
sugoidogo:main

Conversation

@sugoidogo
Copy link
Copy Markdown

Fixes vencord taking over the nested desktop session, as described in this discord message.

when running npm test, the linter requested the statement be split into multiple lines, so I have done so.

While testing, I noticed that the XDG_CURRENT_DESKTOP variable is actually also set by gamescope, so I changed the discussed check to pass on XDG_CURRENT_DESKTOP === "gamescope". Any desktop environment launched within gamescope should change this variable, so this check should fix the issue for any DE launched from game mode.

I had considered that it may cover more scenarios if XDG_CURRENT_DESKTOP was used by itself to set the game mode variable, but since gamescope can be used without the steam client, not all features enabled by this variable make sense in those scenarios, so it seems best to include all 3 checks for the most correct behaviour.

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.

1 participant