mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 773783 - Launching an app with an incompatible version of Firefox installed on Mac produces a very not so useful error message. r=myk
This commit is contained in:
parent
0fcbd9e841
commit
f3b2662a82
@ -331,14 +331,12 @@ NSString
|
||||
@"org.mozilla.aurora",
|
||||
@"org.mozilla.firefox", nil];
|
||||
|
||||
//if they provided a manual override, use that. If they made an error, it will fail to launch
|
||||
// If they provided a binary ID, use that.
|
||||
if (alternateBinaryID != nil && ([alternateBinaryID length] > 0)) {
|
||||
binaryPath = [[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:alternateBinaryID];
|
||||
if (binaryPath == nil || [binaryPath length] == 0) {
|
||||
@throw MakeException(@"Web Runtime Not Found",
|
||||
[NSString stringWithFormat:@"Failed to locate specified override Web Runtime with signature '%@'", alternateBinaryID]);
|
||||
if (binaryPath && [binaryPath length] > 0) {
|
||||
return binaryPath;
|
||||
}
|
||||
return binaryPath;
|
||||
}
|
||||
|
||||
//No override found, loop through the various flavors of firefox we have
|
||||
|
Loading…
Reference in New Issue
Block a user