Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UX] UMU used by default if linux and proton, not exprimental anymore, allow disabling as needed #4175

Merged
merged 3 commits into from
Dec 15, 2024

Conversation

arielj
Copy link
Collaborator

@arielj arielj commented Dec 14, 2024

UMU has been experimental for a while now and it's been working fine for some time already (the issue with the steamdeck in gaming was solved, and the issue with winetricks was solved too).

This PR changes 3 things:

  • UMU support not experimental anymore
  • UMU always enabled when using Proton by default
  • UMU can be disabled as needed on a game-by-game basis for any edge case that doesn't work

Once this is merged we could change the Wine Manager screen to recommend Proton-GE instead of Wine-GE.


Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@arielj arielj added the pr:ready-for-review Feature-complete, ready for the grind! :P label Dec 14, 2024
@arielj arielj requested review from a team, flavioislima, CommandMC, Nocccer and imLinguin and removed request for a team December 14, 2024 17:41
if (gameSettings.wineVersion.type !== 'proton') return false
if (gameSettings.disableUMU) return false
if (!checkUmuInstalled) return true
if (!existsSync(await getUmuPath())) return false
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm using individual returns for each condition cause I think it's easier to understand what's being checked and we can avoid more expensive operations if we can return earlier

@arielj arielj requested a review from CommandMC December 15, 2024 01:00
@arielj arielj merged commit 2f428e7 into main Dec 15, 2024
9 checks passed
@arielj arielj deleted the umu-by-default branch December 15, 2024 16:02
@Heroic-Games-Launcher Heroic-Games-Launcher locked and limited conversation to collaborators Dec 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants