Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-108172: do not override OS preferred browser if it is a super-string of a known browser#113011

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gpshead merged 4 commits intopython:mainfromguss77:patch-1
Aug 31, 2024

Conversation

@guss77
Copy link
Contributor

@guss77guss77 commentedDec 12, 2023
edited by bedevere-appbot
Loading

As discussed in issue#108172 , if one of the known browser is a substring match to the OS preferred browser (for example, if the preferred browser isfirefox-nightly.desktop),register_X_browsers will override the preferred browser with the wrong browser.

The (more) correct way to see if the preferred browser is being registered is to compare its name to the expected FDo desktop entry name. This isn't very accurate, the linked issue details a possibly better idea, but this one works.

maltejur reacted with thumbs up emoji
@ghost
Copy link

ghost commentedDec 12, 2023
edited by ghost
Loading

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@guss77guss77force-pushed thepatch-1 branch 4 times, most recently from356b5f5 toe1872ffCompareDecember 13, 2023 15:58
guss77and others added2 commitsJanuary 4, 2024 09:29
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".
@guss77
Copy link
ContributorAuthor

Ping! Any chance someone can review this 1 line fix?

@gpsheadgpshead merged commit10bf615 intopython:mainAug 31, 2024
@gpsheadgpshead added the needs backport to 3.13bugs and security fixes labelAug 31, 2024
@miss-islington-app
Copy link

Thanks@guss77 for the PR, and@gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestAug 31, 2024
…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 commit10bf615)Co-authored-by: Oded Arbel <oded@geek.co.il>Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@bedevere-app
Copy link

GH-123527 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelAug 31, 2024
@gpsheadgpshead added the needs backport to 3.12only security fixes labelAug 31, 2024
@miss-islington-app
Copy link

Thanks@guss77 for the PR, and@gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestAug 31, 2024
…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 commit10bf615)Co-authored-by: Oded Arbel <oded@geek.co.il>Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@bedevere-app
Copy link

GH-123528 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelAug 31, 2024
gpshead pushed a commit that referenced this pull requestAug 31, 2024
…er-string of a known browser (GH-113011) (GH-123528)gh-108172: do not override OS preferred browser if it is a super-string of a known browser (GH-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".#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 commit10bf615)Co-authored-by: Oded Arbel <oded@geek.co.il>Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@guss77guss77 deleted the patch-1 branchAugust 31, 2024 09:41
@guss77
Copy link
ContributorAuthor

Thanks for the backport! (I'm running 3.12 and this will be mighty useful to me).

Yhg1s pushed a commit that referenced this pull requestSep 2, 2024
…er-string of a known browser (GH-113011) (#123527)gh-108172: do not override OS preferred browser if it is a super-string of a known browser (GH-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".#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 commit10bf615)Co-authored-by: Oded Arbel <oded@geek.co.il>Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gpsheadgpsheadgpshead approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@guss77@gpshead@AlexWaygood

[8]ページ先頭

©2009-2025 Movatter.jp