Skip to content

Commit 996a663

Browse files
authored
Document new info on how to detect edge on Linux
1 parent 636a58c commit 996a663

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

msal/application.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ def _preferred_browser():
7878
if sys.platform != "linux": # On other platforms, we have no browser preference
7979
return None
8080
browser_path = "/usr/bin/microsoft-edge" # Use a full path owned by sys admin
81+
# Note: /usr/bin/microsoft-edge, /usr/bin/microsoft-edge-stable, etc.
82+
# are symlinks that point to the actual binaries which are found under
83+
# /opt/microsoft/msedge/msedge or /opt/microsoft/msedge-beta/msedge.
84+
# Either method can be used to detect an Edge installation.
8185
user_has_no_preference = "BROWSER" not in os.environ
8286
user_wont_mind_edge = "microsoft-edge" in os.environ.get("BROWSER", "") # Note:
8387
# BROWSER could contain "microsoft-edge" or "/path/to/microsoft-edge".

0 commit comments

Comments
 (0)