Skip to content

[3.12] gh-108172: do not override OS preferred browser if it is a super-string of a known browser (GH-113011) #123528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 31, 2024

When checking if the registering browser is the "OS preferred browser", do not use a substring search - that makes no sense: one can have a preferred browser that looks like a super-string of a known browser, e.g. "firefox-nightly" vs "firefox".

#108172 explains in more detail, and lays out a potential better future enhancement for this case of just using xdg-open. We'll go with this for now.


(cherry picked from commit 10bf615)

Co-authored-by: Oded Arbel oded@geek.co.il
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com

…r-string of a known browser (pythonGH-113011)

When checking if the registering browser is the "OS preferred browser", do not use a substring search - that makes no sense: one can have a preferred browser that looks like a super-string of a known browser, e.g. "firefox-nightly" vs "firefox".

python#108172 explains in more detail, and lays out a potential better future enhancement for this case of just using xdg-open.  We'll go with this for now.

---------

(cherry picked from commit 10bf615)

Co-authored-by: Oded Arbel <oded@geek.co.il>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@gpshead gpshead enabled auto-merge (squash) August 31, 2024 06:15
@gpshead gpshead merged commit bf99818 into python:3.12 Aug 31, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants