mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-05-09 08:04:13 -04:00
Automatic fallback when WebKit is missing. If embedded WebView cannot load, route the same “add account” flow to non-WebView login, so Arch minimal installs work without WebKit.
This commit is contained in:
@@ -39,11 +39,21 @@ public class AvaloniaLoginChoiceEager : ILoginChoiceEager
|
||||
}
|
||||
catch (Exception ex) when (WebView2LoginErrorMessage.IsWebView2SignInInfrastructureFailure(ex))
|
||||
{
|
||||
await MessageBox.ShowAdminAlert(
|
||||
App.MainWindow,
|
||||
WebView2LoginErrorMessage.ExplainerBody,
|
||||
WebView2LoginErrorMessage.Caption,
|
||||
ex);
|
||||
// Linux (e.g. missing WebKit2GTK): go straight to external browser — same outcome as turning off embedded sign-in.
|
||||
if (OperatingSystem.IsLinux())
|
||||
{
|
||||
Serilog.Log.Logger.Information(
|
||||
ex,
|
||||
"Embedded sign-in browser is not available; continuing with external browser sign-in.");
|
||||
}
|
||||
else
|
||||
{
|
||||
await MessageBox.ShowAdminAlert(
|
||||
App.MainWindow,
|
||||
WebView2LoginErrorMessage.ExplainerBody,
|
||||
WebView2LoginErrorMessage.Caption,
|
||||
ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user