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

refactor: restore runtime depending on directory integrity #217

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

R1kaB3rN
Copy link
Member

@R1kaB3rN R1kaB3rN commented Oct 10, 2024

Creates a checksum file umu.hashsum in $HOME/.local/share/umu or $HOME/.var/app/org.openwinecomponents.umu.umu-launcher/data/umu that stores the sha256 checksum of all the runtime files metadata. The file will be used each launch to automatically restore the runtime if the runtime directory is either tampered, corrupted, or if the checksum file itself is missing.

Note: Once this is merged, this will delete all users $HOME/.local/share/umu or $HOME/.var/app/org.openwinecomponents.umu.umu-launcher/data/umu directory and restore the runtime back to a clean state with the checksum file.

Expecting this to fix both current Lutris and Heroic users who are experiencing problems with missing files after installing or updating the runtime.

Tested on Lutris 0.5.17 with its runtime update. Additionally, a branch is made at https://github.com/Open-Wine-Components/umu-launcher/tree/integrity-check for testing.

@R1kaB3rN R1kaB3rN marked this pull request as ready for review October 10, 2024 21:34
@R1kaB3rN R1kaB3rN marked this pull request as ready for review October 11, 2024 19:22
@R1kaB3rN R1kaB3rN marked this pull request as draft October 12, 2024 19:24
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