added guidance to a common error with crossover patching

This commit is contained in:
aomizu
2025-06-20 19:08:31 +09:00
parent b6455f07ed
commit 2abe296278
2 changed files with 6 additions and 2 deletions

View File

@@ -3,4 +3,4 @@
Name = "TurtleSilicon" Name = "TurtleSilicon"
ID = "com.tairasu.turtlesilicon" ID = "com.tairasu.turtlesilicon"
Version = "1.2.3" Version = "1.2.3"
Build = 72 Build = 73

View File

@@ -243,7 +243,11 @@ func PatchCrossOver(myWindow fyne.Window, updateAllStatuses func()) {
debug.Printf("Copying %s to %s", wineloaderOrig, wineloaderCopy) debug.Printf("Copying %s to %s", wineloaderOrig, wineloaderCopy)
if err := utils.CopyFile(wineloaderOrig, wineloaderCopy); err != nil { if err := utils.CopyFile(wineloaderOrig, wineloaderCopy); err != nil {
dialog.ShowError(fmt.Errorf("failed to copy wineloader: %w", err), myWindow) errMsg := fmt.Sprintf("failed to copy wineloader: %v", err)
if strings.Contains(err.Error(), "operation not permitted") {
errMsg += "\n\nSolution: Open System Settings, go to Privacy & Security > App Management, and enable TurtleSilicon."
}
dialog.ShowError(fmt.Errorf(errMsg), myWindow)
paths.PatchesAppliedCrossOver = false paths.PatchesAppliedCrossOver = false
updateAllStatuses() updateAllStatuses()
return return