Skip to content

Commit

Permalink
don't try passwordless on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
cfbao committed Oct 23, 2024
1 parent 71eb750 commit 5a0ab79
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/D2L.Bmx/BrowserLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ internal class BrowserLauncher : IBrowserLauncher {
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
"/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge",
];
private static readonly string[] LinuxPaths = [
"/opt/google/chrome/chrome",
"/opt/microsoft/msedge/msedge",
];

async Task<IBrowser> IBrowserLauncher.LaunchAsync( string browserPath ) {
var launchOptions = new LaunchOptions {
Expand Down Expand Up @@ -59,10 +55,9 @@ bool IBrowserLauncher.TryGetPathToBrowser( [NotNullWhen( returnValue: true )] ou
} else if( OperatingSystem.IsMacOS() ) {
path = Array.Find( MacPaths, File.Exists );
return path is not null;
} else if( OperatingSystem.IsLinux() ) {
path = Array.Find( LinuxPaths, File.Exists );
return path is not null;
}
// Okta DSSO is only supported for Windows and Mac. There's no point for us to support Linux.
// Chromium is finicky on Linux anyway.
return false;
}
}

0 comments on commit 5a0ab79

Please sign in to comment.