Skip to content

Instantly share code, notes, and snippets.

@oddmario
Created July 13, 2024 11:09
Show Gist options
  • Save oddmario/06b8a59d446ed03b3232dbfb9486af2e to your computer and use it in GitHub Desktop.
Save oddmario/06b8a59d446ed03b3232dbfb9486af2e to your computer and use it in GitHub Desktop.
Attempt to fix a corrupted Wineprefix
#!/bin/bash
killall -9 wine
mv ~/.wine ~/.winebak
wineboot
rm -rf ~/.wine/drive_*
mv -f ~/.winebak/drive_* ~/.wine
rm -rf ~/.wine/*.reg
mv -f ~/.winebak/*.reg ~/.wine
rm -rf ~/.winebak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment