diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-04-06 14:42:30 -0500 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-04-06 14:42:30 -0500 |
| commit | 0589fbf8171901812f4e9df14d4572e9d578be98 (patch) | |
| tree | 0c6cc712ee3e4698c367b92a4a7fb83b65ec711f /src | |
| parent | 28d1072ebb43dd35f7a36fc852e5dc3f1fe30b19 (diff) | |
Fix misleading "No Wine Prefix" error when launch binary not found
ENOENT from process execution was always shown as "No Wine Prefix"
when useProton was set, even when the prefix was properly configured.
Now checks FluorineConfig::isSetup() first — if the prefix exists,
falls through to the generic spawnFailed dialog which shows the
actual missing binary path.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/src/spawn.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/spawn.cpp b/src/src/spawn.cpp index d94fbae..6cb925e 100644 --- a/src/src/spawn.cpp +++ b/src/src/spawn.cpp @@ -1026,7 +1026,7 @@ pid_t startBinary(QWidget *parent, const SpawnParameters &sp) { const auto e = spawn::spawn(sp, pid);
if (e != 0) {
- if (e == ENOENT && sp.useProton) {
+ if (e == ENOENT && sp.useProton && !FluorineConfig::isSetup()) {
QMessageBox::critical(
parent, QObject::tr("No Wine Prefix"),
QObject::tr("No Wine prefix has been configured for this instance.\n\n"
|
