Skip to content

Commit f263fd5

Browse files
committed
feat: error on wine debugger
1 parent ba6ea89 commit f263fd5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cmd/vinegar/app.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,15 @@ func (a *app) Write(b []byte) (int, error) {
171171
continue
172172
}
173173

174+
if strings.Contains(line, "starting debugger") && !a.cfg.Debug {
175+
gtkutil.IdleAdd(func() {
176+
a.pfx.Kill()
177+
a.showError(errors.New(
178+
"Wine unexpectedly crashed, please try again or delete all data!",
179+
))
180+
})
181+
}
182+
174183
slog.Log(context.Background(), logging.LevelWine.Level(), line)
175184
}
176185
return len(b), nil

0 commit comments

Comments
 (0)