fix: default browser not working on some os

This commit is contained in:
Kevin Yue committed 2024-10-31 06:31:54 +00:00
1 parent ed413ee029
commit 222fe26cea
3 files changed
+173 -18

No files matched your search

@@ -52,7 +52,7 @@ impl BrowserAuthenticator<'_> {
open::with_detached(path.as_ref(), app)?;
} else {
info!("Launching the default browser...");
open::that_detached(path.as_ref())?;
webbrowser::open(path.as_ref())?;
}
Ok(())